@Test
public void shouldProvideDateForLong() throws Exception {

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