// Assert the first part of the mapped result is a QueryTestEntity
assertEquals(results.get(0)[0].getClass(), QueryTestEntity.class,
"Unexpected @EntityResult type for @SqlResultSetMapping " + resultSetMapping + " "
+ "for native query " + nativeQuery);
QueryTestEntity qteResult = (QueryTestEntity) results.get(0)[0];
assertEquals(qteResult.getEntityType(), "AAA",
"Unexpected @EntityResult result for @SqlResultMapping " + resultSetMapping + " "
+ "for native query " + nativeQuery);
// Assert the second part of the mapped result is a String scalar
assertEquals(results.get(0)[1].getClass(), String.class,