Object[] portiaRow = result.get( 2 );
assertThat( portiaRow[0] ).isEqualTo( portia.getName() );
assertThat( portiaRow[1] ).isEqualTo( portia.getAuthor() );
transaction.commit();
session.clear();
session.close();
}
@Test
public void testUniqueResultNamedNativeQuery() throws Exception {