IdpRole { public void setRoleName(final String roleName) { this.roleName = roleName; }  int getId(); void setId(int id); String getRoleName(); void setRoleName(final String roleName); List<IdpUser> getUser(); void setUser(List<IdpUser> user);  }
@Test public void deleteUnassignedRole_works() throws Exception { log.info("deleteUnassignedrole_works: begin"); IdpRole unassignedRole = new IdpRole(); unassignedRole.setRoleName("unassignedrole"); em.getTransaction().begin(); em.persist(unassignedRole); em.getTransaction().commit(); log.info("deleteAssignedRole_fails: stored role"); em.getTransaction().begin(); em.remove(unassignedRole); em.getTransaction().commit(); log.info("deleteAssignedRole_fails: removed role"); assertTrue(true); log.info("deleteUnassignedRole_works!"); }