public void testUnlockingALocalSone() throws FcpException {
Sone localSone = mock(Sone.class);
when(localSone.getId()).thenReturn("LocalSone");
public void testUnlockingALocalSone() throws FcpException {
Sone localSone = mock(Sone.class);
when(localSone.getId()).thenReturn("LocalSone");
when(core.getLocalSone(eq("LocalSone"), anyBoolean())).thenReturn(localSone);
SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "LocalSone").get();
when(core.getLocalSone(eq("LocalSone"), anyBoolean())).thenReturn(localSone);
SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "LocalSone").get();
public void testUnlockingARemoteSone() throws FcpException {
Sone removeSone = mock(Sone.class);
Core core = mock(Core.class);
public void testUnlockingARemoteSone() throws FcpException {
Sone removeSone = mock(Sone.class);
Core core = mock(Core.class);
SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "RemoteSone").get();
UnlockSoneCommand unlockSoneCommand = new UnlockSoneCommand(core);
SimpleFieldSet fields = new SimpleFieldSetBuilder().put("Sone", "RemoteSone").get();
UnlockSoneCommand unlockSoneCommand = new UnlockSoneCommand(core);