}
@Test
public void testInvalidEntity()
{
PersistenceUnitUtil utils = emf.getPersistenceUnitUtil();
Person p = new Person();
p.setAge(32);
p.setPersonId("1");
try
{
utils.getIdentifier(new String("test"));
Assert.fail("Should have gone to catch block!");
} catch(IllegalArgumentException iaex)
{
Assert.assertEquals(String.class + " is not an entity", iaex.getMessage());
}