@Test
public void testMarshalAsByteArrayOutputStream()
		throws SimpleMarshallerException, SAXException, IOException {

	// Arrange
	XMLUnit.setIgnoreAttributeOrder(true);
	XMLUnit.setIgnoreComments(true);
	XMLUnit.setIgnoreWhitespace(true);
	final String expectedOutput = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><ruleExecutionContainer><executionResponseList/></ruleExecutionContainer>";
	final RuleExecutionContainer r = createRuleExecutionContainer();
	// Act
	final ByteArrayOutputStream output = marshaller
			.marshalAsByteArrayOutputStream(r);
	assertNotNull(output);
	assertXMLEqual(expectedOutput, output.toString());
}