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