ConerCoreApplication extends Application<ConerCoreConfiguration> { @Override public void initialize( Bootstrap<ConerCoreConfiguration> bootstrap ) { bootstrap.addBundle(getHibernateBundle()); bootstrap.addBundle(new SwaggerBundle<ConerCoreConfiguration>() { @Override protected SwaggerBundleConfiguration getSwaggerBundleConfiguration( ConerCoreConfiguration configuration ) { return configuration.getSwaggerBundleConfiguration(); } }); JacksonUtil.configureObjectMapper(bootstrap.getObjectMapper()); }  static void main(String[] args); @Override void initialize(
            Bootstrap<ConerCoreConfiguration> bootstrap
    ); @Override void run(
            ConerCoreConfiguration conerCoreConfiguration,
            Environment environment
    );  }
@Test public void itShouldInitializeHibernate() { application.hibernateBundle = mock(HibernateBundle.class); application.initialize(bootstrap); verify(bootstrap).addBundle(application.hibernateBundle); }
@Test public void itShouldWriteDatesAsTimestamps() { application.initialize(bootstrap); ArgumentCaptor<SerializationFeature> serializationFeatureArgumentCaptor = ArgumentCaptor.forClass( SerializationFeature.class ); ArgumentCaptor<Boolean> valueArgumentCaptor = ArgumentCaptor.forClass(Boolean.class); verify(objectMapper).configure(serializationFeatureArgumentCaptor.capture(), valueArgumentCaptor.capture()); assertThat(serializationFeatureArgumentCaptor.getValue()) .isEqualTo(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); assertThat(valueArgumentCaptor.getValue()).isFalse(); }