@Test
public void testGetCommittedTransactionsCount() throws Exception {

    //let us increment some transactions count and then check
    shardStats.incrementCommittedTransactionCount();
    shardStats.incrementCommittedTransactionCount();
    shardStats.incrementCommittedTransactionCount();
    //now let us get from MBeanServer what is the transaction count.
    Object attribute = mbeanServer.getAttribute(testMBeanName,
        "CommittedTransactionsCount");
    Assert.assertEquals(attribute, 3L);
}