.tokenLocation(Common.ACCESS_TOKEN_ENDPOINT)
.setGrantType(GrantType.PASSWORD)
.setClientId(Common.CLIENT_ID)
.buildBodyMessage();
OAuthClient oAuthClient = new OAuthClient(new URLConnectionClient());
OAuthClientResponse response = null;
try {
oAuthClient.accessToken(request);
fail("exception expected");
} catch (OAuthProblemException e) {
assertEquals(OAuthError.TokenResponse.INVALID_REQUEST, e.getError());
}