@Test
public void testEntityIsStillDetachedAfterValidationException() {
Person p = new Person("Foo", 2);
try {
p.setName("A");
p.persist();
fail("should fail to validate");
} catch(ValidationException ve) {
System.out.println(ve.getClass());
}
assertEquals("A",p.getName());