public void runOperationInTxnThrowingCheckedExcepting() throws IOException {
      assertTrue(session.getTransaction().isActive());
      JpaTestEntity entity = new JpaTestEntity();
      entity.setText(UNIQUE_TEXT_2);
      session.persist(entity);

      throw new FileNotFoundException();
    }
    public void runOperationInTxnThrowingChecked() throws IOException {
      assertTrue(session.getTransaction().isActive());
      JpaTestEntity entity = new JpaTestEntity();
      entity.setText(TRANSIENT_UNIQUE_TEXT);
      session.persist(entity);

      throw new IOException();
    }
 public void runOperationInTxn() {
   assertTrue(session.getTransaction().isActive());
   JpaTestEntity entity = new JpaTestEntity();
   entity.setText(UNIQUE_TEXT);
   session.persist(entity);
 }