java client and integration test