@Test
public void testConnectionsAreReadOnlyModeAware() throws SQLException {

    final ReadOnlyModeAwareDataSource dataSource = new ReadOnlyModeAwareDataSource(mockedDataSource);
    assertIsReadOnlyModeAware(dataSource.getConnection());
    assertIsReadOnlyModeAware(dataSource.getConnection("x", "y"));
}