Add Java API integration test