public void setUp() throws TestDriverException, OperationException {
   sessionDriver.connect();
   numberOfObject = sessionDriver.getNumberOfSession();
   if (numberOfObject == 0)
     throw new OperationException(
         "The number of objects initializated in the database must not be zero");
 }
 public void doOperation() throws TestDriverException, OperationException {
   int randomId = random.nextInt(numberOfObject);
   Session session = sessionDriver.read(randomId);
   if (session == null) {
     logger.debug("Session == null for the msisdnId = " + randomId);
     throw new OperationException(
         "Null session in ReadSessionOperation: is the database correctly initialized?");
   }
 }
 public void tearDown() throws TestDriverException {
   sessionDriver.close();
 }