RegExMethodAuthorizer implements MethodInvocationAuthorizer { public Set<String> getAllowedPatterns() { return allowedPatterns; } RegExMethodAuthorizer(Cache cache, Set<String> allowedPatterns);  RegExMethodAuthorizer(RestrictedMethodAuthorizer restrictedMethodAuthorizer,
      Set<String> allowedPatterns); Set<String> getAllowedPatterns(); @Override boolean authorize(Method method, Object target);  }
@Test public void allowedPatternsShouldBeAccessibleBuNotModifiable() { assertThatThrownBy(() -> geodeRegExMatchingMethodAuthorizer.getAllowedPatterns().add(".*")) .isInstanceOf(UnsupportedOperationException.class); }