/*
  * Setup a new Connection before each test since its closed state will need to be checked
  * afterwards and there is no Connection.open().
  */
 @Before
 public void setupConnection() throws SQLException {
   dataSource.reset();
   connection = createMockConnection();
   connectionTwo = createMockConnection();
   dataSource.addConnection(connectionTwo);
   dataSource.addConnection(connection);
 }
 protected void assertSingleConnection() {
   assertEquals(
       "should only call DataSource.getConnection() once", 1, dataSource.getConnectionCount());
 }