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