@Override
    public boolean containsSlot(AllocationID allocationId) {
        return registeredSlots.containsKey(allocationId);
    }
@Test
    void testContainsSlot() {
        final DefaultAllocatedSlotPool slotPool = new DefaultAllocatedSlotPool();
        final AllocatedSlot allocatedSlot = createAllocatedSlot(null);

        slotPool.addSlots(Collections.singleton(allocatedSlot), 0);

        assertThat(slotPool.containsSlot(allocatedSlot.getAllocationId())).isTrue();
        assertThat(slotPool.containsSlot(new AllocationID())).isFalse();
    }