@Test
public void canExportProductConsumer() throws NoSuchMethodException {
Entitlement entitlement = mock(Entitlement.class);
Consumer consumer = mock(Consumer.class);
ConsumerType consumerType = mock(ConsumerType.class);
Pool pool = mock(Pool.class);
Product product = mock(Product.class);
Set<PoolAttribute> attributes = new HashSet<PoolAttribute>();
attributes.add(new PoolAttribute("pool_derived", "true"));
when(entitlement.getPool()).thenReturn(pool);
when(entitlement.getConsumer()).thenReturn(consumer);
when(pool.getProductId()).thenReturn("12345");
when(product.getAttributes()).thenReturn(new HashSet<ProductAttribute>());
when(pool.getAttributes()).thenReturn(attributes);
when(consumer.getType()).thenReturn(consumerType);
when(consumerType.getLabel()).thenReturn("system");
assertTrue(exportRules.canExport(entitlement));
}