@Test
void shouldAllowCustomAuthTokenWithNullRealm()
{

    AuthToken token = AuthTokens.custom( "principal", "credentials", null, "scheme" );
    Map<String,Value> map = ((InternalAuthToken) token).toMap();
    assertEquals( 3, map.size() );
    assertEquals( "scheme", map.get( "scheme" ).asString() );
    assertEquals( "principal", map.get( "principal" ).asString() );
    assertEquals( "credentials", map.get( "credentials" ).asString() );
}