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