@Test
public void testDeserialization() throws IOException {

  String json = "{\"locked\":true}";
  LockResult lockResult = JsonUtil.deserialize(json, LockResult.class);
  assertTrue(lockResult.isLocked());
  json = "{\"locked\":false}";
  lockResult = JsonUtil.deserialize(json, LockResult.class);
  assertFalse(lockResult.isLocked());
}