@Test
public void testTimestampFormat() throws JsonProcessingException {

    ObjectMapper mapper = ResultJsonUtil.initJsonMapper();
    String s = mapper.writeValueAsString(new MyClass());
    assertThat(s).contains("\"dateTime\" : \"2019-02-04T15:13:24.000000933\""); // just check the time format; avoid checking the line separators
}