### Question:
DateTimeSerializer implements JsonSerializer<DateTime> { @Override public JsonElement serialize(final DateTime src, final Type typeOfSrc, final JsonSerializationContext context) { return new JsonPrimitive(src == null ? StringUtils.EMPTY : DATE_TIME_FORMATTER.print(src)); }  @Override JsonElement serialize(final DateTime src, final Type typeOfSrc, final JsonSerializationContext context);  }### Answer:
@Test(dataProvider = "serializeDP") public void serialize(DateTime dateTime, String expectedDateTimeAsJson) { assertEquals(testling.serialize(dateTime, DateTime.class, null).toString(), expectedDateTimeAsJson); }