public Optional<LeaderInformation> forComponentId(String componentId) {
        return Optional.ofNullable(leaderInformationPerComponentId.get(componentId));
    }
@Test
    void testForComponentId() {
        final String componentId = "component-id";
        final LeaderInformation leaderInformation =
                LeaderInformation.known(UUID.randomUUID(), "address");
        assertThat(
                        LeaderInformationRegister.of(componentId, leaderInformation)
                                .forComponentId(componentId))
                .hasValue(leaderInformation);
    }