BoneCPConnectionProvider implements ConnectionProvider,Configurable,Stoppable { public void closeConnection(Connection conn) throws SQLException { conn.close(); }  void closeConnection(Connection conn); void configure(Properties props); Connection getConnection(); boolean supportsAggressiveRelease(); ClassLoader getClassLoader(); void setClassLoader(ClassLoader classLoader); @Override @SuppressWarnings("rawtypes") boolean isUnwrappableAs(Class unwrapType); @SuppressWarnings("unchecked") @Override T unwrap(Class<T> unwrapType); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override void configure(Map configurationValues); @Override void stop(); void close();  }
@Test public void testCloseConnection() throws SQLException { mockConnection.close(); expectLastCall().once(); replay(mockPool); testClass.closeConnection(mockConnection); verify(mockPool); }