@Test
void shouldAllowBasicAuthTokenWithNullRealm()
{

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