@Test
public void testEncodeFraction() {

  Date a = new Date(1);
  Date b = new Date(125);
  Date c = new Date(100);
  assertEquals("1970-01-01T00:00:00.001Z", encodeDate(a, Precision.Fraction).getValue());
  assertEquals("1970-01-01T00:00:00.125Z", encodeDate(b, Precision.Fraction).getValue());
  assertEquals("1970-01-01T00:00:00.100Z", encodeDate(c, Precision.Fraction).getValue());
}