### Question:
TimestampDataConverter implements DataConverter<Timestamp>, DateParser<Timestamp> { @Override public String valueToString(Timestamp value) { return value != null ? getDateTimeFormatter().format(value) : ""; }  @Override Timestamp stringToValue(String rawData); @Override String valueToString(Timestamp value); @Override Timestamp parsDate(String rawData); @Override String dateToString(Timestamp value); static DateFormat getDateFormatWithTimeZone(DateFormat dateFormat);  }### Answer:
@Test public void valueToString_valueIsNull_returnEmptyString() { assertEquals(timestampDataConverter.valueToString(null), ""); }
@Test public void valueToString_valueIsTimestamp_returnString() { assertEquals(timestampDataConverter.valueToString(Timestamp.valueOf("2018-05-11 11:00:00")), "2018-05-11T11:00:00"); }
@Test public void valueToString_valueIsTimestampAndIsClientTimezoneIsFalse_returnString() { when(clientTimezoneFormattingRulesResolver.isApplyClientTimezone(any(Class.class))).thenReturn(false); assertEquals(timestampDataConverter.valueToString(Timestamp.valueOf("2018-05-11 11:00:00")), "2018-05-11T11:00:00"); }