}
}).build();
configureMapperFactory(factory);
Policy policy = new Policy();
Set<PolicyElement> elements = new HashSet<PolicyElement>();
CustomerElement target = new CustomerElement();
target.setName("Adil");
elements.add(new PolicyElementProxy(target));
elements.add(new ProductElement());
elements.add(new OtherElement());
elements.add(new OneOtherElement());
policy.setElements(elements);
PolicyDTO dto = factory.getMapperFacade(Policy.class, PolicyDTO.class).map(policy);
Assert.assertEquals(elements.size(), dto.getElements().size());