@Override
  @SuppressWarnings("nullness")
  public List<Map<String, Object>> readTable(String tableName) {
    LOG.info("Reading all rows from {}.{}", databaseName, tableName);
    List<Map<String, Object>> result = runSQLQuery(String.format("SELECT * FROM %s", tableName));
    LOG.info("Successfully loaded rows from {}.{}", databaseName, tableName);
    return result;
  }
@Test
  public void testReadTableShouldThrowErrorWhenJDBCFailsToExecuteSQL() throws SQLException {
    when(container.getHost()).thenReturn(HOST);
    when(container.getMappedPort(JDBC_PORT)).thenReturn(MAPPED_PORT);
    Statement statement = driver.getConnection(any(), any(), any()).createStatement();
    doThrow(SQLException.class).when(statement).executeQuery(anyString());

    assertThrows(JDBCResourceManagerException.class, () -> testManager.readTable(TABLE_NAME));
  }