assertThat(new SimpleDateFormat("yyyy-MM-dd").format(person.getBirthDate())).isEqualTo("1990-12-12");
assertThat(person.isMarried()).isTrue();
}
@Test
public void whenValuesAreValid_ThenInheritedFieldsOfTheMappedObjectShouldBeCorrectlyPopulated() throws Exception {
<BUG>ObjectMapper mapper = new ObjectMapper(ExtendedPerson.class);
</BUG>
Map<String, String> values = new HashMap<>();
values.put("firstName", "foo");
values.put("lastName", "bar");

assertThat(new SimpleDateFormat("yyyy-MM-dd").format(person.getBirthDate())).isEqualTo("1990-12-12");
assertThat(person.isMarried()).isTrue();
}
@Test
public void whenValuesAreValid_ThenInheritedFieldsOfTheMappedObjectShouldBeCorrectlyPopulated() throws Exception {
ObjectMapper<ExtendedPerson> mapper = new ObjectMapper<>(ExtendedPerson.class);
Map<String, String> values = new HashMap<>();
values.put("firstName", "foo");
values.put("lastName", "bar");
