@Nonnull
    public static Map<Integer, Accumulator> getAccumulators(QueryCacheContext context, String mapName, String cacheId) {
        PartitionAccumulatorRegistry partitionAccumulatorRegistry = getAccumulatorRegistryOrNull(context, mapName, cacheId);
        if (partitionAccumulatorRegistry == null) {
            return Collections.emptyMap();
        }
        return partitionAccumulatorRegistry.getAll();
    }
@Test
    public void getAccumulators_whenNoAccumulatorsRegistered_thenReturnEmptyMap() {
        Map<Integer, Accumulator> accumulators = getAccumulators(context, "myMap", "myCache");

        assertNotNull(accumulators);
        assertEquals(0, accumulators.size());
    }