@Test
void shouldNotAllowCustomAuthTokenWithNullCredentials()
{

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