Test.java 8 'foo()' is deprecated