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