public void testSingleResultQueryUsingDateParameter() throws Exception {
begin();
EntityManager em = createEntityManager();
String nativeQuery = "MATCH ( n:" + TABLE_NAME + " { dateOfCreation:{creationDate}, author:'Oscar Wilde' } ) RETURN n";
Query query = em.createNativeQuery( nativeQuery, OscarWildePoem.class );
query.setParameter( "creationDate", new GregorianCalendar( 1810, 3, 10 ).getTime() );
OscarWildePoem poem = (OscarWildePoem) query.getSingleResult();
assertAreEquals( athanasia, poem );