in clientSecurity/src/main/java/org/apache/geode_examples/clientSecurity/Example.java [112:123]
private static void readOnlyUserCannotPut() {
try (Example example = new Example("dataReader")) {
// This will pass
example.region1.get(AUTHOR_LYNCH);
example.region2.get(AUTHOR_ROTHFUSS);
// This will fail since dataReader does not have DATA:WRITE
example.region1.put(AUTHOR_SANDERSON, BOOK_BY_SANDERSON);
} catch (Exception e) {
logger.error("This exception should be caused by NotAuthorizedException", e);
}
}