@Test
public void testCallableStatementsAreReadOnlyModeAware() throws SQLException {

    final ReadOnlyModeAwareConnection cnx = new ReadOnlyModeAwareConnection(mockedConnection, readOnlyModeStatus);
    final String sql = "select * from whatever";
    assertIsReadOnlyModeAware(cnx.prepareCall(sql));
    assertIsReadOnlyModeAware(cnx.prepareCall(sql, 0, 0));
    assertIsReadOnlyModeAware(cnx.prepareCall(sql, 0, 0, 0));
}