@Test
public void deleteAffiliationNoServerResponse() throws Exception {

    thrown.expect(AffiliationException.class);
    thrown.expectMessage("Error while deleting affiliation");
    HFCAClient client = HFCAClient.createNewInstance("http://localhost:99", null);
    client.setCryptoSuite(crypto);
    HFCAAffiliation aff = client.newHFCAAffiliation("neworg1");
    aff.delete(admin);
}