private void delete(Session session, OscarWildePoem poem) {
   Object entity = session.get(OscarWildePoem.class, poem.getId());
   if (entity != null) {
     session.delete(entity);
   }
 }
 private void assertAreEquals(OscarWildePoem expectedPoem, OscarWildePoem poem) {
   assertThat(poem).isNotNull();
   assertThat(poem.getId()).as("Wrong Id").isEqualTo(expectedPoem.getId());
   assertThat(poem.getName()).as("Wrong Name").isEqualTo(expectedPoem.getName());
   assertThat(poem.getAuthor()).as("Wrong Author").isEqualTo(expectedPoem.getAuthor());
 }