added integration test. Java 7 is now required!