@Test
public void createIdentityNoServerResponse() throws Exception {

    thrown.expect(IdentityException.class);
    thrown.expectMessage("Error while creating user");
    HFCAClient client = HFCAClient.createNewInstance("http://localhost:99", null);
    client.setCryptoSuite(crypto);
    HFCAIdentity ident = client.newHFCAIdentity("testuser1");
    ident.create(admin);
}