when(consumer.getFact(eq("system.certificate_version"))).thenReturn("3.2");
ProductAttribute attr = new ProductAttribute("ram", "4");
subscription.getProduct().addAttribute(attr);
X509V3ExtensionUtil mockV3extensionUtil = mock(X509V3ExtensionUtil.class);
X509ExtensionUtil mockExtensionUtil = mock(X509ExtensionUtil.class);
DefaultEntitlementCertServiceAdapter entAdapter =
new DefaultEntitlementCertServiceAdapter(
mockedPKI, mockExtensionUtil, mockV3extensionUtil,
mock(EntitlementCertificateCurator.class), keyPairCurator,