@Test(description = "This method tests the canHandle method of OAuthAuthenticator")
public void testCanHandle() throws IllegalAccessException {

    Request request = createOauthRequest(BEARER_HEADER);
    Assert.assertTrue(oAuthAuthenticator.canHandle(request),
            "The request with the bearer authorization header cannot be handled by OauthAuthenticator");
    request = createOauthRequest("test");
    Assert.assertFalse(oAuthAuthenticator.canHandle(request),
            "The request without bearer authorization header can be handled by OauthAuthenticator");
}