assertThat(extendedPerson.isMarried()).isTrue();
assertThat(extendedPerson.getNickName()).isEqualTo("FB");
}
@Test
public void whenACustomTypeConverterIsRegistered_ThenItShouldBeUsedToConvertTheCustomType() throws Exception {
<BUG>ObjectMapper mapper = new ObjectMapper(Person.class);
</BUG>
mapper.registerTypeConverter(new TypeConverter<String, Gender>() {
@Override
public Gender convert(String value) {

assertThat(extendedPerson.isMarried()).isTrue();
assertThat(extendedPerson.getNickName()).isEqualTo("FB");
}
@Test
public void whenACustomTypeConverterIsRegistered_ThenItShouldBeUsedToConvertTheCustomType() throws Exception {
ObjectMapper<Person> mapper = new ObjectMapper<>(Person.class);
mapper.registerTypeConverter(new TypeConverter<String, Gender>() {
@Override
public Gender convert(String value) {
