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