This example uses the JUnit testing framework and authenticates to Sauce Labs using credentials set as environment variables

You can also clone this script directly from GitHub.