### Question:
SimpleAuthorizingInterceptor extends AbstractAuthorizingInInterceptor { public void setGlobalRoles(String roles) { globalRoles = Arrays.asList(roles.split(" ")); } SimpleAuthorizingInterceptor();  SimpleAuthorizingInterceptor(boolean uniqueId); void setMethodRolesMap(Map<String, String> rolesMap); void setUserRolesMap(Map<String, String> rolesMap); void setGlobalRoles(String roles); void setCheckConfiguredRolesOnly(boolean checkConfiguredRolesOnly);  }### Answer:
@Test public void testPermitWithClassRoles() { SimpleAuthorizingInterceptor in = createSimpleAuthorizingInterceptor(); in.setGlobalRoles("role1 testRole"); in.handleMessage(message); }
@Test(expected = AccessDeniedException.class) public void testDenyWithClassRoles() { SimpleAuthorizingInterceptor in = createSimpleAuthorizingInterceptor(); in.setGlobalRoles("role1 role2"); in.handleMessage(message); }