if (!useSameEm)
{
em.close();
em = emf.createEntityManager();
}
StudentBooleanWrapper newStudent = em.find(StudentBooleanWrapper.class, getMaxValue(Boolean.class));
Assert.assertNotNull(newStudent);
Assert.assertEquals(getMaxValue(short.class), newStudent.getAge());
Assert.assertEquals("Vivek", newStudent.getName());
em.close();
}