MillisecondTimeNormaliser implements TypeTransformer { @Override public Object transform(Object o) { return (o == null) ? null : new MillisecondTime((Time) o); }  @Override Object transform(Object o);  }
@Test public void toStringExposesTimeUpToMilliseconds() { Time normalisedTime = (Time) normaliser.transform(millisTime); String[] timeParts = normalisedTime.toString().split("\\."); assertEquals("13:12:05", timeParts[0]); assertEquals(1, Integer.parseInt(timeParts[1])); assertEquals(2, timeParts.length); }