I am not sure what is being illustrated by outputting the test code at trace level? If its not too important I would disable this (i.e. remove the log4jproperties). The example then has the benefit that the src/main can be used as is as almost an archetype should someone want to build an app on top of it.