/**
  * Tear down of test.
  *
  * @throws DrmaaException
  */
 public void tearDown() throws DrmaaException {
   /* the system should be stable enough to call exit() twice */
   try {
     session.exit();
   } catch (NoActiveSessionException ex) {
     // this exception is expected
   } catch (DrmaaException ex) {
     ex.printStackTrace();
   }
 }
 public void test2882Test() throws DrmaaException {
   System.out.println("testIssue2882");
   /* call the underlaying japi_exit() before japi_init() */
   try {
     session.exit();
   } catch (NoActiveSessionException ex) {
     // this exception is expected
   } catch (DrmaaException ex) {
     ex.printStackTrace();
   }
 }