@Test
  public void testGetNewContainersWithException() throws Exception {
    when(mockContainerQueryStatement.executeQuery()).thenThrow(new SQLTransientConnectionException());
    TestUtils.assertException(SQLTransientConnectionException.class, () -> accountDao.getNewContainers(0L), null);
    assertEquals("Read failure count should be 1", 1, metrics.readFailureCount.getCount());
  }
Utility to get a {@link MySqlDataAccessor}.
@param mockConnection the connection to use.
@return the {@link MySqlDataAccessor}.
@throws SQLException
ambry-account/src/test/java/com/github/ambry/account/mysql/AccountDaoTest.java