@Test
public void importConsumer() throws Exception {
Security.addProvider(new BouncyCastleProvider());
PKIUtility pki = new BouncyCastlePKIUtility(null,
new DefaultSubjectKeyIdentifierWriter());
OwnerCurator oc = mock(OwnerCurator.class);
ConsumerTypeCurator ctc = mock(ConsumerTypeCurator.class);
ConsumerType type = new ConsumerType(ConsumerTypeEnum.CANDLEPIN);
when(ctc.lookupByLabel(eq("candlepin"))).thenReturn(type);