Tests with Java