    @Test
    public void testUserNullPasswordIdentity() {

        UserPasswordIdentity identity = IdentityFactory.createFromUserPassword("USER", null);
        Assert.assertThat(identity.getUsername(), equalTo("USER"));
        Assert.assertThat(identity.getPassword(), nullValue());
    }