@Override
    protected final Iterator<C> containerIterator(int partitionId) {
        return new ContainerIterator(partitionId);
    }
@Test
    public void testContainerIterator() {
        TestNamedContainerCollector collector = new TestNamedContainerCollector(nodeEngine, true, true);
        assertEquals(1, collector.containers.size());

        int partitionId = collector.getContainerPartitionId("myContainer");
        Iterator<Object> iterator = collector.containerIterator(partitionId);

        assertInstanceOf(AbstractNamedContainerCollector.ContainerIterator.class, iterator);
        assertTrue("Expected next elements in iterator", iterator.hasNext());
        assertNotNull("", iterator.next());
        // iterator.remove() should remove the current container
        iterator.remove();
        assertEquals(0, collector.containers.size());
    }