in clientSecurity/src/main/java/org/apache/geode_examples/clientSecurity/Example.java [99:110]
private static void writeOnlyUserCannotGet() {
try (Example example = new Example("dataWriter")) {
// Writes to any region should pass
example.region1.put(AUTHOR_LYNCH, BOOK_BY_LYNCH);
example.region2.put(AUTHOR_ROTHFUSS, BOOK_BY_ROTHFUSS);
// This will fail since dataWriter does not have DATA:READ
example.region1.get(AUTHOR_LYNCH);
} catch (Exception e) {
logger.error("This exception should be caused by NotAuthorizedException", e);
}
}