src/test/java/com/squareup/connect/api/OAuthApiTest.java
@Test
    public void obtainTokenTest() throws ApiException {
        ObtainTokenRequest body = null;
        ObtainTokenResponse response = api.obtainToken(body);

        // TODO: test validations
    }
/**
     * ObtainToken
     *
     * Exchanges the authorization code for an access token.  After a merchant authorizes your application with the permissions form, an authorization code is sent to the application&#39;s redirect URL (See [Implementing OAuth](https://docs.connect.squareup.com/api/oauth#implementingoauth) for information about how to set up the redirect URL).
     *
     * @throws ApiException
     *          if the Api call fails
     */
ObtainToken
Exchanges the authorization code for an access token.  After a merchant authorizes your application with the permissions form, an authorization code is sent to the application's redirect URL (See [Implementing OAuth] for information about how to set up the redirect URL).

@throws ApiException
if the Api call fails
ObtainToken Exchanges the authorization code for an access token . After a merchant authorizes your application with the permissions form an authorization code is sent to the application ' s redirect URL ( See [ Implementing OAuth ] for information about how to set up the redirect URL ) . @throws ApiException if the Api call fails
@Test
    public void obtainTokenTest() throws ApiException {
        ObtainTokenRequest body = null;
        ObtainTokenResponse response = api.obtainToken(body);
    }
@ Test public void obtainTokenTest ( ) throws ApiException { ObtainTokenRequest body = null ; ObtainTokenResponse response = api . obtainToken ( body ) ; }
ObtainToken
 Exchanges the authorization code for an access token.
ObtainToken Exchanges the authorization code for an access token .
// TODO: test validations