@Test
 public void testRollback() throws Exception {
   expect(tx.getStatus()).andReturn(Status.STATUS_ACTIVE);
   tx.rollback();
   expectLastCall();
   replay(tx);
   jut.rollback();
 }
 @Test
 public void testRollback_3() throws Exception {
   expect(tx.getStatus()).andReturn(Status.STATUS_ACTIVE);
   tx.rollback();
   expectLastCall().andThrow(new SystemException("bad"));
   replay(tx);
   try {
     jut.rollback();
   } catch (DoceException e) {
     assertEquals("bad", e.getCause().getMessage());
   }
 }
 @Test
 public void testRollback_2() throws Exception {
   expect(tx.getStatus()).andReturn(Status.STATUS_NO_TRANSACTION);
   replay(tx);
   jut.rollback();
 }