main method moved from test to production, maven compiles java 1.7 code