when(localSone.getId()).thenReturn("LocalSone");
when(localSone.isLocal()).thenReturn(true);
Core core = mock(Core.class);
when(core.getSone(eq("LocalSone"))).thenReturn(Optional.of(localSone));
when(core.getLocalSone(eq("LocalSone"), anyBoolean())).thenReturn(localSone);
SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "LocalSone").get();
UnlockSoneCommand unlockSoneCommand = new UnlockSoneCommand(core);
Response response = unlockSoneCommand.execute(fields, null, null);
verify(core).unlockSone(eq(localSone));