any(String.class));
}
@Test
public void virtOnlyByAttribute() throws Exception {
//note that "true" gets recoded to "1" to match other bools in the cert
PoolAttribute attr = new PoolAttribute("virt_only", "true");
entitlement.getPool().addAttribute(attr);
certServiceAdapter.createX509Certificate(entitlement,
product, new HashSet<Product>(), new BigInteger("1234"), keyPair(), true);
verify(mockedPKI).createX509Certificate(any(String.class),