@Test
public void writeDefaults() {

	final CustomValidationConfiguration cvc = new CustomValidationConfiguration();
	final MessageValidatorConfiguration validator = new MessageValidatorConfiguration();
	validator.setId("validator-1");
	validator.setFactory("org.holodeckb2b.test.NotReal");
	cvc.addValidator(validator);
	
	final String xml = createXML(cvc);
	
	assertFalse(Utils.isNullOrEmpty(xml));
	assertTrue(countElements(xml, "ExecuteInOrder") == 1);
	assertEquals("false", findElements(xml, "ExecuteInOrder").get(0).getTextContent());
	assertTrue(countElements(xml, "StopValidationOn") == 0);
	assertTrue(countElements(xml, "RejectMessageOn") == 0);
	assertTrue(countElements(xml, "Validator") == 1);		
}