public MemberStateImpl getMemberState() {
        return memberState;
    }
@Test
    public void testOnlyCachesWithStatsEnabled_areReportedInTimedMemberState() {
        // create 100 caches with stats enabled
        for (int i = 0; i < 100; i++) {
            hz.getCacheManager().getCache(CACHE_WITH_STATS_PREFIX + i);
        }
        // create 50 caches with stats disabled
        for (int i = 0; i < 50; i++) {
            ICache cacheWithoutStats = hz.getCacheManager().getCache(CACHE_WITHOUT_STATS_PREFIX + i);
            // explicitly request local stats -> this registers an empty stats object in CacheService
            cacheWithoutStats.getLocalCacheStatistics();
        }

        MemberStateImpl memberState = createState().getMemberState();
        for (int i = 0; i < 100; i++) {
            assertContains(memberState.getCachesWithStats(), getDistributedObjectName(CACHE_WITH_STATS_PREFIX + i));
            assertNotContains(memberState.getCachesWithStats(), getDistributedObjectName(CACHE_WITHOUT_STATS_PREFIX + i));
        }
    }