Change examples from junit tests to standard classes with a main().