@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*BasicAuthentication.*")
public void testParseAuthorizationWrongMethod() throws Exception {

    AuthorizationHeaderParser.parse("Digest cm9sYW5kOnMhY3IhdA==");
}