Use java rather than groovy to implement test app.