CreateLockRes { @Nonnull public Lock getLock() { return lock; } CreateLockRes(
      @JsonProperty(value = "lock", required = true) @Nonnull Lock lock
  ); @Nonnull Lock getLock();  }
@Test public void parse01() throws IOException, ParseException { final CreateLockRes data = SerializeTester.deserialize("create-lock-res-01.json", CreateLockRes.class); Assert.assertNotNull(data); final Lock lock = data.getLock(); Assert.assertNotNull(lock); Assert.assertEquals(lock.getId(), "some-uuid"); Assert.assertEquals(lock.getPath(), "/path/to/file"); Assert.assertEquals(lock.getLockedAt(), StdDateFormat.instance.parse("2016-05-17T15:49:06+00:00")); Assert.assertNotNull(lock.getOwner()); Assert.assertEquals(lock.getOwner().getName(), "Jane Doe"); }