### Question:
ResourcesPermissionsMapping extends ConfigurationFile { public Set<String> getResourcePermissionsWithWildCard(final String method, final String apiName, final String resourceName, final List<String> resourceQualifiers) { if (resourceQualifiers != null && resourceQualifiers.size() > 0) { for (int i = resourceQualifiers.size() - 1; i >= 0; i--) { final List<String> resourceQualifiersWithWildCard = getResourceQualifiersWithWildCard(resourceQualifiers, i); final String key = buildResourceKey(method, apiName, resourceName, resourceQualifiersWithWildCard); final Set<String> permissions = getPropertyAsSet(key); if (!permissions.isEmpty()) { return permissions; } } final List<String> reducedResourceQualifiers = new ArrayList<String>(resourceQualifiers); reducedResourceQualifiers.remove(resourceQualifiers.size() - 1); return getResourcePermissionsWithWildCard(method, apiName, resourceName, reducedResourceQualifiers); } return Collections.emptySet(); } ResourcesPermissionsMapping(long tenantId);  ResourcesPermissionsMapping(String propertiesFilename, long tenantId); Set<String> getResourcePermissions(final String method, final String apiName, final String resourceName, final List<String> resourceQualifiers); Set<String> getResourcePermissionsWithWildCard(final String method, final String apiName, final String resourceName,
            final List<String> resourceQualifiers); Set<String> getResourcePermissions(final String method, final String apiName, final String resourceName); static final String API_METHOD_SEPARATOR; static final String WILDCARD; static final String PROPERTIES_FILENAME; }### Answer:
@Test public void testGetResourcePermissionWithWildCard() throws Exception { final String fileContent = "POST|bpm/processinstantiation [Custom permission]\n" + "PUT|bpm/process/*/expression [Expression update]"; final ResourcesPermissionsMapping resourcesPermissionsMapping = getResourcesPermissionsMapping(fileContent); final Set<String> getWithResourcesQualifier = resourcesPermissionsMapping.getResourcePermissionsWithWildCard("GET", "bpm", "process", Arrays.asList("6")); final Set<String> postWithResourcesQualifier = resourcesPermissionsMapping.getResourcePermissionsWithWildCard("POST", "bpm", "process", Arrays.asList("6")); final Set<String> postWithResourcesQualifiers = resourcesPermissionsMapping.getResourcePermissionsWithWildCard("POST", "bpm", "process", Arrays.asList("6", "instantiation")); final Set<String> putWithResourcesQualifiers = resourcesPermissionsMapping.getResourcePermissionsWithWildCard("PUT", "bpm", "process", Arrays.asList("6", "expression", "10")); Assertions.assertThat(getWithResourcesQualifier).isEmpty(); Assertions.assertThat(postWithResourcesQualifier).containsOnly("Process Deploy"); Assertions.assertThat(postWithResourcesQualifiers).containsOnly("Custom permission"); Assertions.assertThat(putWithResourcesQualifiers).containsOnly("Expression update"); }