### Question:
TimeDataConverter implements DataConverter<Time> { @Override public String valueToString(Time value) { return value != null ? getFormatter().format(timeZoneTransformer.toClientTimezone(value)) : ""; }  @Override Time stringToValue(String rawData); @Override String valueToString(Time value);  }### Answer:
@Test public void valueToString_valueIsNull_returnEmptyString() { assertEquals(timeDataConverter.valueToString(null), ""); }
@Test public void valueToString_timeIs11hours_returnString() { when(timeZoneTransformer.toClientTimezone(any())).thenReturn(Time.valueOf("11:00:00")); assertEquals(timeDataConverter.valueToString(Time.valueOf("11:00:00")), "11:00:00"); }
@Test public void valueToString_timeIs11hoursWithClientTimezone_returnString() { when(timeZoneTransformer.toClientTimezone(any())).thenReturn(Time.valueOf("13:00:00")); assertEquals(timeDataConverter.valueToString(Time.valueOf("11:00:00")), "13:00:00"); }