@Test
public void shouldReturnEmptyCredentialsIfAnotherAuthorizationSchemeThanBasicIsUsed() {

    // given
    when(httpServletRequest.getHeader("Authorization"))
            .thenReturn(
                    "Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c");
    // when
    final Optional<Credentials> credentials = Credentials.readFrom(httpServletRequest);
    // then
    assertThat(credentials.isPresent(), is(false));
}