@Test
  public void testInsertCopy() throws Exception {
    aggregatedAccountReportsDao.copyAggregatedUsageToMonthlyAggregatedTableForCluster(clusterName);
    verify(mockConnection).prepareStatement(anyString());
    assertEquals("Copy success count should be 1", 1, metrics.copySuccessCount.getCount());

    // Run second time to reuse statement
    aggregatedAccountReportsDao.copyAggregatedUsageToMonthlyAggregatedTableForCluster(clusterName);
    assertEquals("Copy success count should be 2", 2, metrics.copySuccessCount.getCount());
  }
Utility to get a {@link DataSource}.
@param mockConnection the connection to use.
@return the {@link DataSource}.
@throws SQLException
ambry-mysql/src/test/java/com/github/ambry/accountstats/AggregatedAccountReportsDaoTest.java