@@ -0,0 +1,1141 @@
+package com.uwetrottmann.trakt.v2;%0A%0Aimport org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse;%0Aimport org.apache.oltu.oauth2.common.exception.OAuthProblemException;%0Aimport org.apache.oltu.oauth2.common.exception.OAuthSystemException;%0Aimport org.junit.Test;%0A%0Apublic class AuthTest extends BaseTestCase %7B%0A%0A    public static final String TEST_CLIENT_ID = %22e683ed71dd4a4afe73ba73151a4645f511b8703464a7807045088c733ef8d634%22;%0A    public static final String TEST_CLIENT_SECRET = %2221da158feb52479c53936a48b13e4abe94b907908387d47b70710deb2f4a51fa%22;%0A    private static final String AUTH_CODE = %22%22;%0A%0A    @Test%0A    public void test_getAccessToken() throws OAuthProblemException, OAuthSystemException %7B%0A        if (AUTH_CODE.length() == 0) %7B%0A            throw new IllegalArgumentException(%0A                    %22Make sure you set a temporary auth code to exchange for an access token%22);%0A        %7D%0A        OAuthAccessTokenResponse response = TraktV2.getAccessToken(%0A                TEST_CLIENT_ID, TEST_CLIENT_SECRET, %22http://localhost%22, AUTH_CODE);%0A        System.out.println(%22Retrieved access token: %22 + response.getAccessToken());%0A    %7D%0A%0A%7D%0A

Add token endpoint test.