Fix failing test by adding Java dependency.