@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();
}