static MysqlRepairRequestsDb createRepairRequestsConnection(String localDc, Time time) throws Exception {
    try {
      Properties properties = Utils.loadPropsFromResource("repairRequests_mysql.properties");
      properties.setProperty(MysqlRepairRequestsDbConfig.LIST_MAX_RESULTS, Integer.toString(100));
      properties.setProperty(MysqlRepairRequestsDbConfig.LOCAL_POOL_SIZE, "5");

      VerifiableProperties verifiableProperties = new VerifiableProperties(properties);
      MetricRegistry metrics = new MetricRegistry();
      MysqlRepairRequestsDbFactory factory =
          new MysqlRepairRequestsDbFactory(verifiableProperties, metrics, localDc, time);
      MysqlRepairRequestsDb repairRequestsDb = factory.getRepairRequestsDb();

      resetRepairRequestsDb(repairRequestsDb);
      return repairRequestsDb;
    } catch (SQLException e) {
      throw e;
    } catch (IOException e) {
      throw e;
    }
  }
Test the background RepairRequestsSender and the repair requests handlers.
ambry-test-utils/src/main/java/com/github/ambry/server/ServerTestUtil.java