Product p = createProduct();
p = productResource.createProduct(p);
// ensure we check SecurityHole
securityInterceptor.enable();
ProductCertificate cert = new ProductCertificate();
cert.setCert("some text");
cert.setKey("some key");
cert.setProduct(p);
productCertificateCurator.create(cert);
ProductCertificate cert1 = productResource.getProductCertificate(p.getId());
assertEquals(cert, cert1);
}