@Test
public void testAuthenticatingCredentialsHeaderNull() {

    Authority authority = Mockito.mock(Authority.class);
    Mockito.when(authority.getHeader()).thenReturn(null);
    assertNull(Http.authenticatingCredentials(null, authority));
}