@Test
public void shouldProvideDoubleForDate() throws Exception {

    Date date = new Date();
    assertThat(new JcrValue(factories, PropertyType.DATE, date).getDouble(), is((double)date.getTime()));
}