### Question:
ResourcesPermissionsMapping extends ConfigurationFile { public Set<String> getResourcePermissions(final String method, final String apiName, final String resourceName, final List<String> resourceQualifiers) { final String key = buildResourceKey(method, apiName, resourceName, resourceQualifiers); return getPropertyAsSet(key); } 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 testGetResourcePermission() throws Exception { final String fileContent = "GET|bpm/process [Process visualization, Process categories, Process actor mapping visualization, Connector visualization]\n" + "POST|bpm/process [Process Deploy]\n" + "POST|bpm/process/6 [Custom permission]\n" + "PUT|bpm/process []"; final ResourcesPermissionsMapping resourcesPermissionsMapping = getResourcesPermissionsMapping(fileContent); final Set<String> getPermissions = resourcesPermissionsMapping.getResourcePermissions("GET", "bpm", "process"); final Set<String> postPermission = resourcesPermissionsMapping.getResourcePermissions("POST", "bpm", "process"); final Set<String> postOnSinglePermission = resourcesPermissionsMapping.getResourcePermissions("POST", "bpm", "process", Arrays.asList("6")); final Set<String> putPermissions = resourcesPermissionsMapping.getResourcePermissions("PUT", "bpm", "process"); final Set<String> unknown = resourcesPermissionsMapping.getResourcePermissions("unknown", "unknown", "unknown", Arrays.asList("unknown")); Assertions.assertThat(getPermissions).containsOnly("Process visualization", "Process categories", "Process actor mapping visualization", "Connector visualization"); Assertions.assertThat(postPermission).containsOnly("Process Deploy"); Assertions.assertThat(postOnSinglePermission).containsOnly("Custom permission"); Assertions.assertThat(putPermissions).isEmpty(); Assertions.assertThat(unknown).isEmpty(); }