Chris Scheuble presented all eight examples in his Java security talk with JUnit tests. A few years ago this would have been surprising since examples are so commonly shown with main() methods. Unit testing is becoming more just an accepted way of doing development. Now if more frameworks and tools could make testing easier by default.