private void verifyDbSuccess(Controller theController, String dbConfigName, int expectedSuccesses) {
DatabaseReader reader = null;
logger.info("Verifying database success for database configuration: " + dbConfigName);
try {
reader = new DatabaseReader(theController.getConfig(), dbConfigName);
reader.open();
int readBatchSize = theController.getConfig().getInt(Config.DAO_READ_BATCH_SIZE);
List<Row> successRows = reader.readRowList(readBatchSize);
int rowsProcessed = 0;
assertNotNull("Error reading " + readBatchSize + " rows", successRows);
while(successRows.size() > 0) {