Stabilize java integration tests