@Override
    public String toString() {
        return "LocalMapStatsImpl{"
                + "lastAccessTime=" + lastAccessTime
                + ", lastUpdateTime=" + lastUpdateTime
                + ", hits=" + hits
                + ", numberOfOtherOperations=" + numberOfOtherOperations
                + ", numberOfEvents=" + numberOfEvents
                + ", getCount=" + getCount
                + ", putCount=" + putCount
                + ", setCount=" + setCount
                + ", removeCount=" + removeCount
                + ", evictionCount=" + evictionCount
                + ", expirationCount=" + expirationCount
                + ", totalGetLatencies=" + convertNanosToMillis(totalGetLatenciesNanos)
                + ", totalPutLatencies=" + convertNanosToMillis(totalPutLatenciesNanos)
                + ", totalSetLatencies=" + convertNanosToMillis(totalSetLatenciesNanos)
                + ", totalRemoveLatencies=" + convertNanosToMillis(totalRemoveLatenciesNanos)
                + ", maxGetLatency=" + convertNanosToMillis(maxGetLatency)
                + ", maxPutLatency=" + convertNanosToMillis(maxPutLatency)
                + ", maxSetLatency=" + convertNanosToMillis(maxSetLatency)
                + ", maxRemoveLatency=" + convertNanosToMillis(maxRemoveLatency)
                + ", ownedEntryCount=" + ownedEntryCount
                + ", backupEntryCount=" + backupEntryCount
                + ", backupCount=" + backupCount
                + ", ownedEntryMemoryCost=" + ownedEntryMemoryCost
                + ", backupEntryMemoryCost=" + backupEntryMemoryCost
                + ", creationTime=" + creationTime
                + ", lockedEntryCount=" + lockedEntryCount
                + ", dirtyEntryCount=" + dirtyEntryCount
                + ", heapCost=" + heapCost
                + ", merkleTreesCost=" + merkleTreesCost
                + ", nearCacheStats=" + (nearCacheStats != null ? nearCacheStats : "")
                + ", queryCount=" + queryCount
                + ", indexedQueryCount=" + indexedQueryCount
                + ", indexStats=" + indexStats
                + ", replicationStats=" + replicationStats
                + '}';
    }
@Test
    public void testToString() {
        String printed = localMapStats.toString();
        assertTrue(printed.contains("lastAccessTime"));
        assertTrue(printed.contains("lastUpdateTime"));
        assertTrue(printed.contains("hits=12314"));
        assertTrue(printed.contains("numberOfOtherOperations=5"));
        assertTrue(printed.contains("numberOfEvents=2"));

        assertTrue(printed.contains("getCount=3"));
        assertTrue(printed.contains("putCount=2"));
        assertTrue(printed.contains("setCount=2"));
        assertTrue(printed.contains("removeCount=1"));

        assertTrue(printed.contains("totalGetLatencies=1247"));
        assertTrue(printed.contains("totalPutLatencies=5632"));
        assertTrue(printed.contains("totalSetLatencies=8722"));
        assertTrue(printed.contains("totalRemoveLatencies=1238"));

        assertTrue(printed.contains("maxGetLatency=1233"));
        assertTrue(printed.contains("maxPutLatency=5631"));
        assertTrue(printed.contains("maxSetLatency=8721"));
        assertTrue(printed.contains("maxRemoveLatency=1238"));

        assertTrue(printed.contains("ownedEntryCount=5"));
        assertTrue(printed.contains("backupEntryCount=3"));
        assertTrue(printed.contains("backupCount=4"));
        assertTrue(printed.contains("ownedEntryMemoryCost=1234"));
        assertTrue(printed.contains("backupEntryMemoryCost=4321"));
        assertTrue(printed.contains("creationTime"));
        assertTrue(printed.contains("lockedEntryCount=1231"));
        assertTrue(printed.contains("dirtyEntryCount=4252"));
        assertTrue(printed.contains("heapCost=7461762"));
        assertTrue(printed.contains("merkleTreesCost=0"));
        assertTrue(printed.contains("nearCacheStats"));
        assertTrue(printed.contains("queryCount=10"));
        assertTrue(printed.contains("indexedQueryCount=5"));
        assertTrue(printed.contains("indexStats"));
    }