public void preEntitlementShouldNotAllowConsumptionFromRequiresHostPools() {
Consumer c = TestUtil.createConsumer();
c.getType().setManifest(true);
Product prod = TestUtil.createProduct();
Pool p = TestUtil.createPool(prod);
p.setAttribute("virt_only", "true");
p.setAttribute("requires_host", "true");
ValidationResult results = enforcer.preEntitlement(c, p, 1, CallerType.BIND);
assertNotNull(results);
assertEquals(1, results.getErrors().size());
ValidationError error = results.getErrors().get(0);