### Question:
RestAPIAuthorizationFilter extends AbstractAuthorizationFilter { protected boolean dynamicCheck(final APICallContext apiCallContext, final Set<String> userPermissions, final Set<String> resourceAuthorizations, final APISession apiSession) throws ServletException { checkResourceAuthorizationsSyntax(resourceAuthorizations); if (checkDynamicPermissionsWithUsername(resourceAuthorizations, apiSession) || checkDynamicPermissionsWithProfiles(resourceAuthorizations, userPermissions)) { return true; } final String resourceClassname = getResourceClassname(resourceAuthorizations); if (resourceClassname != null) { return checkDynamicPermissionsWithScript(apiCallContext, resourceClassname, apiSession); } return false; } RestAPIAuthorizationFilter(final boolean reload);  RestAPIAuthorizationFilter();  static final String SCRIPT_TYPE_AUTHORIZATION_PREFIX; }### Answer:
@Test public void should_dynamicCheck_return_false_on_resource_with_no_script() throws Exception { final boolean isAuthorized = restAPIAuthorizationFilter.dynamicCheck(new APICallContext("GET", "bpm", "case", null, "", ""), new HashSet<String>(), new HashSet<String>(), apiSession); assertThat(isAuthorized).isFalse(); }