consumer.setFacts(new HashMap<String, String>());
consumer.setFact("cpu.cpu_socket(s)", "4");
when(this.prodAdapter.getProductById(productId)).thenReturn(product);
ValidationResult result = enforcer.preEntitlement(consumer, pool, 1);
assertFalse(result.hasErrors());
assertTrue(result.hasWarnings());
assertTrue(result.isSuccessful());
assertEquals("rulewarning.unsupported.number.of.sockets",
result.getWarnings().get(0).getResourceKey());
}