@Test
public void testExecuteReportTwoContractNoDuplicity() throws JsonParseException, JsonMappingException, IOException {

	String roleCode = "test-" + System.currentTimeMillis(); 
	IdmTreeNodeDto treeNode = getHelper().createTreeNode();
	IdmIdentityDto identity = getHelper().createIdentity(new GuardedString());
	IdmIdentityContractDto contactOne = getHelper().createContract(identity, treeNode);
	IdmIdentityContractDto contactTwo = getHelper().createContract(identity, treeNode);
	
	IdmRoleDto role = getHelper().createRole(roleCode);
	getHelper().createIdentityRole(contactOne, role);
	getHelper().createIdentityRole(contactTwo, role);
	RptReportDto report = new RptReportDto(UUID.randomUUID());
	report.setExecutorName(reportExecutor.getName());
	IdmFormDto filter = new IdmFormDto();
	IdmFormDefinitionDto definition = reportExecutor.getFormDefinition();
	IdmFormValueDto treeNodeParameter = new IdmFormValueDto(definition.getMappedAttributeByCode(IdentityRoleByIdentityDeduplicationExecutor.PARAMETER_TREE_NODE));
	treeNodeParameter.setValue(treeNode.getId());
	filter.getValues().add(treeNodeParameter);
	filter.setFormDefinition(definition.getId());
	report.setFilter(filter);
	report = reportExecutor.generate(report);
	Assert.assertNotNull(report.getData());
	List<RptIdentityRoleByRoleDeduplicationDto> reportItems = mapper.readValue(
			attachmentManager.getAttachmentData(report.getData()), 
			new TypeReference<List<RptIdentityRoleByRoleDeduplicationDto>>(){});
	assertEquals(0, reportItems.size());
	attachmentManager.deleteAttachments(report);
}