@Test
public void printSpiritMetadata() throws IOException, SAXException {

	// Arrange
	initSpiritPrivacy();
	final String policy = fileReader.readFile("XacmlConsentSample.xml");
	final String expectedMetadata = fileReader
			.readFile("XacmlConsentSampleResult.xml");
	// Act
	final String actualMetadata = sut.generateMetadataXml(policy, "haha",
			null, null);
	// Assert
	final DetailedDiff diff = XmlComparator.compareXMLs(expectedMetadata,
			actualMetadata, createIgnoreTime());
	assertTrue(diff.similar());
}