@Test
public void testGetFailedReadTransactionsCount() throws Exception {

    //let us increment FailedReadTransactions count and then check
    shardStats.incrementFailedReadTransactionsCount();
    shardStats.incrementFailedReadTransactionsCount();
    //now let us get from MBeanServer what is the transaction count.
    Object attribute =
        mbeanServer.getAttribute(testMBeanName, "FailedReadTransactionsCount");
    Assert.assertEquals(attribute, 2L);
}