try {
conf = getEntityManager().find(Configuration.class, id);
getEntityManager().remove(conf);
tx.commit();
} catch (Exception e) {
tx.rollback();
throw new Exception(e.getMessage());
}
result = q.getResultList();
assertTrue("result should be empty", result.size() == 0);
}