@Override
    public CompletableFuture<Acknowledge> notifyNewBlockedNodes(Collection<BlockedNode> newNodes) {
        blocklistHandler.addNewBlockedNodes(newNodes);
        return CompletableFuture.completedFuture(Acknowledge.get());
    }
@Test
    void testUnblockResourcesWillTriggerResourceRequirementsCheck() throws Exception {

        final CompletableFuture<Void> triggerRequirementsCheckFuture = new CompletableFuture<>();

        final SlotManager slotManager =
                new TestingSlotManagerBuilder()
                        .setTriggerRequirementsCheckConsumer(
                                triggerRequirementsCheckFuture::complete)
                        .createSlotManager();
        resourceManager =
                new ResourceManagerBuilder()
                        .withSlotManager(slotManager)
                        .withBlocklistHandlerFactory(
                                new DefaultBlocklistHandler.Factory(Duration.ofMillis(100L)))
                        .buildAndStart();

        final ResourceManagerGateway resourceManagerGateway =
                resourceManager.getSelfGateway(ResourceManagerGateway.class);

        resourceManagerGateway.notifyNewBlockedNodes(
                Collections.singleton(
                        new BlockedNode("node", "Test cause", System.currentTimeMillis())));

        triggerRequirementsCheckFuture.get();
    }