@Test
public void testRollback6() throws Exception {

  final Transaction transaction = channel.getTransaction();
  transaction.begin();
  transaction.commit();
  testIllegalState(new Runnable() {
      @Override
      public void run() {
        transaction.rollback();
      }
    });
  transaction.close();
  testIllegalState(new Runnable() {
      @Override
      public void run() {
        transaction.rollback();
      }
    });
}