Testing examples using the Java Shazamcrest library