@Test
public void getNullIdentityId() {

    Mockito.when(cognitoIdentityProvider.getCachedCognitoToken()).thenReturn(Optional.absent());
    assertEquals(null, authenticationProvider.getIdentityId());
}