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