### Question:
JWTParser implements JWTPartsParser { static ObjectMapper getDefaultObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS); mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); return mapper; } JWTParser();   JWTParser(ObjectMapper mapper); @Override Payload parsePayload(String json); @Override Header parseHeader(String json);  }### Answer:
@Test public void shouldGetDefaultObjectMapper() throws Exception { ObjectMapper mapper = getDefaultObjectMapper(); assertThat(mapper, is(notNullValue())); assertThat(mapper, is(instanceOf(ObjectMapper.class))); assertThat(mapper.isEnabled(SerializationFeature.FAIL_ON_EMPTY_BEANS), is(false)); }