@Test
public void testDeserialize() throws Exception {

    ObjectMapper mapper = new ObjectMapper();
    mapper.registerModule(new JavaTimeModule());
    String json = "{\"name\":\"Marty\",\"birthday\":\"1985-10-26\",\"email\":null,\"country\":\"\"}";
    Update<TestModel> update = mapper.readValue(json, new TypeReference<Update<TestModel>>() {});
    assertEquals("Marty", update.getPartial().getName());
    assertEquals(LocalDate.of(1985, 10, 26), update.getPartial().getBirthday());
    assertNull(update.getPartial().getEmail());
    assertNull(update.getPartial().getCountry());
    assertEquals(ImmutableSet.of("email", "country"), update.getRemoveFields());
}