@Test
public void shouldProvideDateForDouble() throws Exception {

    Calendar expectedValue = Calendar.getInstance();
    expectedValue.setTime(new Date(0L));
    assertThat(new JcrValue(factories, PropertyType.DOUBLE, 0.0).getDate().getTimeInMillis(),
               is(expectedValue.getTimeInMillis()));
}