in clientSecurity/src/main/java/org/apache/geode_examples/clientSecurity/Example.java [84:97]
private static void adminUserCanPutAndGetEverywhere() throws Exception {
String valueFromRegion;
try (Example example = new Example("superUser")) {
// All puts and gets should pass
example.region1.put(AUTHOR_ABERCROMBIE, BOOK_BY_ABERCROMBIE);
example.region2.put(AUTHOR_GROSSMAN, BOOK_BY_GROSSMAN);
valueFromRegion = example.region1.get(AUTHOR_ABERCROMBIE);
Validate.isTrue(BOOK_BY_ABERCROMBIE.equals(valueFromRegion));
valueFromRegion = example.region2.get(AUTHOR_GROSSMAN);
Validate.isTrue(BOOK_BY_GROSSMAN.equals(valueFromRegion));
}
}