@Test
public void testHFCAIdentityNewInstance() throws Exception {

    HFCAClient client = HFCAClient.createNewInstance("http://localhost:99", null);
    client.setCryptoSuite(crypto);
    HFCAIdentity ident = client.newHFCAIdentity("testid");
    Assert.assertNotNull(ident);
    Assert.assertSame(HFCAIdentity.class, ident.getClass());
    Assert.assertEquals(ident.getEnrollmentId(), "testid");
}