@Test
public void testClose1() throws Exception {

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