Consumer consumer = createConsumer();
when(mockedConsumerCurator.verifyAndLookupConsumer(consumer.getUuid())).thenReturn(
consumer);
CandlepinPoolManager mgr = mock(CandlepinPoolManager.class);
ConsumerResource cr = new ConsumerResource(mockedConsumerCurator, null,
null, null, null, null, null, null, null, null, null, null, null,
null, mgr, null, null, null, null, null, null, null, null,
new CandlepinCommonTestConfig(), null, null, null, consumerBindUtil);
cr.regenerateEntitlementCertificates(consumer.getUuid(), null, true);