Install Maven.
Build your project with:
mvn clean package -DskipTests
Please follow the Set Up Your Project steps in the Quickstart doc to create a project and enable the Google Cloud Media Translation API. Following those steps, make sure that you Set Up a Service Account, and export the following environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json
After you have authorized, you can translate media.
Run all tests:
mvn clean verify