Jenkins-sample is a project mainly written in Java, it's free.
It is a simple project as sample to the JavaMagazine article.