- when(core.getSone(eq("LocalSone"), anyBoolean())).thenReturn(localSone);
- when(core.getLocalSone(eq("LocalSone"), anyBoolean())).thenReturn(localSone);
+ when(core.getSone(eq("LocalSone"))).thenReturn(of(localSone));
+ when(core.getLocalSone(eq("LocalSone"))).thenReturn(of(localSone));