@Test
public void testStatementsAreReadOnlyModeAware() throws SQLException {

    final ReadOnlyModeAwareConnection cnx = new ReadOnlyModeAwareConnection(mockedConnection, readOnlyModeStatus);
    assertIsReadOnlyModeAware(cnx.createStatement());
    assertIsReadOnlyModeAware(cnx.createStatement(0, 0));
    assertIsReadOnlyModeAware(cnx.createStatement(0, 0, 0));
}