@Test
public void testGenerateMetadataXml() throws Exception {

	// Act
	final String metadata = metadataGenerator.generateMetadataXml(c32,
			executionResponseContainer, homeCommunityId,
			senderEmailAddress, recipientEmailAddress);
	logger.debug(metadata);
	// Assert
	assertTrue(metadata
			.contains("<Value>PatientID^^^&amp;2.16.840.1.113883.3.467&amp;ISO</Value>"));
	assertTrue(metadata
			.contains("<Value>^^Internet^leo.smith@direct.obhita-stage.org</Value>"));
	assertTrue(metadata
			.contains("<Value>^^Internet^Duane_Decouteau@direct.healthvault-stage.com</Value>"));
	assertTrue(metadata.contains("<Value>TREAT</Value>"));
	assertTrue(metadata
			.contains("<Value observationId=\"d11275e7-67ae-11db-bd13-0800200c9a66\">ENCRYPT</Value>"));
	assertTrue(metadata
			.contains("<Value observationId=\"d11275e7-67ae-11db-bd13-0800200c9a66\">NORDSLCD</Value>"));
	assertTrue(metadata
			.contains("<Value observationId=\"d11275e7-67ae-11db-bd13-0800200c9a66\">HIV</Value>"));
	assertTrue(metadata
			.contains("<Value observationId=\"d11275e7-67ae-11db-bd13-0800200c9a66\">42CFRPart2</Value>"));
	assertTrue(metadata
			.contains("<Value>100010020002^^^&amp;2.16.840.1.113883.3.467&amp;ISO</Value>"));
}