@Test
  public void testAccountStatsPublisher() throws Exception {
    StatsManager.AccountStatsPublisher publisher = statsManager.new AccountStatsPublisher(accountStatsMySqlStore);
    publisher.run();

    HostAccountStorageStatsWrapper statsWrapper =
        accountStatsMySqlStore.queryHostAccountStorageStatsByHost(currentNode.getHostname(), currentNode.getPort());
    assertEquals(hostAccountStorageStats.getStorageStats(), statsWrapper.getStats().getStorageStats());
  }
Test account stats publisher
@throws Exception
ambry-server/src/integration-test/java/com/github/ambry/server/StatsManagerIntegrationTest.java