@Test
    public void parse_options_into_submap() {
        var opts = new DiscoverabilityOptionsParser(Map.of(
                "api-user.source", "IDM_ROLE",
                "api-user.discoverabilities", "ANONYMOUS, FULL_PLATFORM_MEMBERS",

                "portal-user.source", "APIMAN_ROLE",
                "portal-user.discoverabilities", "ANONYMOUS"
        ));

        Map<String, RoleSourceDiscoverability> results = opts.getNameToDiscoverability();

        assertThat(results)
                .containsEntry("api-user",
                        new RoleSourceDiscoverability(
                                "api-user",
                                Source.IDM_ROLE,
                                Set.of(DiscoverabilityLevel.ANONYMOUS, DiscoverabilityLevel.FULL_PLATFORM_MEMBERS))
                )
                .containsEntry("portal-user",
                        new RoleSourceDiscoverability(
                                "api-user",
                                Source.APIMAN_ROLE,
                                Set.of(DiscoverabilityLevel.ANONYMOUS))
                );
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/security/src/test/java/io/apiman/manager/api/security/impl/DiscoverabilityLevelOptionsParserTest.java