### Question:
ManagedPoolingDataSource implements PoolingDataSource, ScopeEventListener { @Override public Connection getConnection() throws SQLException { return dataSource.getConnection(); } ManagedPoolingDataSource(UnmanagedPoolingDataSource dataSource);  ManagedPoolingDataSource(UnmanagedPoolingDataSource dataSource, long managerWakeTime); @Override void beforeScopeEnd(); @Override void close(); @Override Connection getConnection(); @Override Connection getConnection(String username, String password); @Override PrintWriter getLogWriter(); @Override int getLoginTimeout(); @Override boolean isWrapperFor(Class<?> iface); @Override void setLogWriter(PrintWriter arg0); @Override void setLoginTimeout(int arg0); @SuppressWarnings("unchecked") @Override T unwrap(Class<T> iface); @Override Logger getParentLogger();  }### Answer:
@Test public void testGetConnection() throws SQLException { assertSame(mockConnections[0], dataSource.getConnection()); assertSame(mockConnections[1], dataSource.getConnection()); assertSame(mockConnections[2], dataSource.getConnection()); assertSame(mockConnections[3], dataSource.getConnection()); }