private void verifyDetached(EntityManager em, Object[] entities) {
for (Object entity : entities) {
assertFalse(em.contains(entity));
if (entity instanceof Car) {
Car c = (Car)entity;
assertFalse(em.contains(c.getModel()));
}
else if (entity instanceof Make) {
Make m = (Make)entity;
List<Model> mds = m.getModels();
for (Model md : mds) {