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));
assertThat(response, notNullValue());
assertThat(response.getReplyParameters(), notNullValue());
assertThat(response.getReplyParameters().get("Message"), is("SoneUnlocked"));
assertThat(response.getReplyParameters().get("Sone"), is("LocalSone"));
}