@Test
void shouldNotAllowCustomAuthTokenWithNullPrincipal()
{

    NullPointerException e = assertThrows( NullPointerException.class, () -> AuthTokens.custom( null, "credentials", "realm", "scheme" ) );
    assertEquals( "Principal can't be null", e.getMessage() );
}