### Question:
JacksonConfigurationBundle implements ConfiguredBundle<Configuration> { public static Builder builder() { return new Builder(); } private  JacksonConfigurationBundle(
      ObjectMapperConfigurationUtil.Builder objectMapperBuilder, boolean disableFieldFilter); static Builder builder(); @Override void initialize(Bootstrap<?> bootstrap); @Override void run(Configuration configuration, Environment environment);  }### Answer:
@Test public void shouldAllowEmptyBean() throws Exception { ObjectMapper objectMapper = objectMapperFromBundle(JacksonConfigurationBundle.builder().build()); String json = objectMapper.writeValueAsString(new Object()); assertThat(json).isEqualTo("{}"); }
@Test public void shouldRenderSelfLink() throws Exception { ObjectMapper objectMapper = objectMapperFromBundle(JacksonConfigurationBundle.builder().build()); HALLink link = new HALLink.Builder(URI.create("http: ResourceWithLink resource = new ResourceWithLink().setSelf(link); String json = objectMapper.writeValueAsString(resource); assertThat(json).isEqualTo("{\"_links\":{\"self\":{\"href\":\"http: }
@Test public void shouldDisableHalSupport() throws Exception { ObjectMapper objectMapper = objectMapperFromBundle(JacksonConfigurationBundle.builder().withoutHalSupport().build()); HALLink link = new HALLink.Builder(URI.create("http: ResourceWithLink resource = new ResourceWithLink().setSelf(link); String json = objectMapper.writeValueAsString(resource); assertThat(json).isEqualTo("{\"self\":{\"href\":\"http: }
@Test public void shouldCustomizeObjectMapper() throws Exception { ObjectMapper objectMapper = objectMapperFromBundle( JacksonConfigurationBundle.builder() .withCustomization(om -> om.enable(INDENT_OUTPUT)) .build()); HALLink link = new HALLink.Builder(URI.create("http: ResourceWithLink resource = new ResourceWithLink().setSelf(link); String json = objectMapper.writeValueAsString(resource); assertThat(json) .isEqualTo( "{" + System.lineSeparator() + " \"_links\" : {" + System.lineSeparator() + " \"self\" : {" + System.lineSeparator() + " \"href\" : \"http: + System.lineSeparator() + " }" + System.lineSeparator() + " }" + System.lineSeparator() + "}"); }