AuthorizeHeaderToken implements AuthenticationToken { byte[] getAuthorizeHeaderValue() { return authorizeHeaderValue; } AuthorizeHeaderToken(String authorizeHeaderValue); @Override Object getPrincipal(); @Override Object getCredentials();  }
@Test(expected = IllegalArgumentException.class) public void testInvalidScheme() { new AuthorizeHeaderToken("Basic " + ALADDIN_OPEN_SESAME).getAuthorizeHeaderValue(); }