@Test
public void testRedactDocument() throws Throwable {

	// Act
	initDocumentRedactorWithActualServices();
	String factModelXml = factModelExtractor.extractFactModel(c32,
			MOCK_XACML_RESULT);
	c32 = embeddedClinicalDocumentExtractor
			.extractClinicalDocumentFromFactModel(factModelXml);
	factModelXml = removeEmbeddedClinicalDocument(factModelXml);
	final FactModel factModel = marshaller.unmarshalFromXml(
			FactModel.class, factModelXml);
	setValueSetCategories(factModel);
	factModel.setXacmlResult(xacmlResultMock);
	final String result = documentRedactor.redactDocument(c32,
			ruleExecutionContainer, factModel).getRedactedDocument();
	logger.debug("RESULT--> " + result);
	// Assert
	assertTrue(c32
			.contains("e11275e7-67ae-11db-bd13-0800200c9a66b827vs52h7"));
	assertTrue(c32.contains("d11275e7-67ae-11db-bd13-0800200c9a66"));
	assertTrue(!result
			.contains("e11275e7-67ae-11db-bd13-0800200c9a66b827vs52h7"));
	assertTrue(!result.contains("d11275e7-67ae-11db-bd13-0800200c9a66"));
}