.thenThrow(new IOException());
CandlepinPoolManager poolManager = new CandlepinPoolManager(null,
mockedSubscriptionServiceAdapter, null,
mockedEntitlementCertServiceAdapter, null, null,
new CandlepinCommonTestConfig(), null, null,
mockedEntitlementCurator, mockedConsumerCurator, null, null, null,
mockedActivationKeyRules);
ConsumerResource consumerResource = new ConsumerResource(
mockedConsumerCurator, null, null, null, mockedEntitlementCurator, null,
mockedEntitlementCertServiceAdapter, null, null, null, null, null, null,
null, poolManager, null, null, null, null, null, null, null, null,
new CandlepinCommonTestConfig(), null, null, null, consumerBindUtil);
consumerResource.regenerateEntitlementCertificates(consumer.getUuid(), "9999",
false);
}