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