public void testListMultipleResultQuery() throws Exception {
begin();
EntityManager em = createEntityManager();
String nativeQuery = "{ $query : { author : 'Oscar Wilde' }, $orderby : { name : 1 } }";
@SuppressWarnings("unchecked")
List<OscarWildePoem> results = em.createNativeQuery( nativeQuery, OscarWildePoem.class ).getResultList();
assertThat( results ).as( "Unexpected number of results" ).hasSize( 2 );
assertAreEquals( athanasia, results.get( 0 ) );
assertAreEquals( portia, results.get( 1 ) );