Buggy code:
public class DataMapperOneToOneTestCase extends DataMapperIntegrationTest { private final String ARTIFACT_ROOT_PATH = "//artifacts//ESB//mediatorconfig//datamapper//one_to_one//" ; private final String REGISTRY_ROOT_PATH = "datamapper//one_to_one//" ; @ Test ( groups = { "wso2.esb" } , description = "Datamapper<seq2seq4repair_space>simple<seq2seq4repair_space>one<seq2seq4repair_space>to<seq2seq4repair_space>one<seq2seq4repair_space>xml<seq2seq4repair_space>to<seq2seq4repair_space>xml<seq2seq4repair_space>conversion" ) public void testOneToOneXmlToXml ( ) throws Exception { loadESBConfigurationFromClasspath ( ( ( ( ( ARTIFACT_ROOT_PATH ) + "xml_to_xml//" ) + ( File . separator ) ) + "synapse.xml" ) ) ; uploadResourcesToGovernanceRegistry ( ( ( REGISTRY_ROOT_PATH ) + "xml_to_xml//" ) , ( ( ( ARTIFACT_ROOT_PATH ) + "xml_to_xml" ) + ( File . separator ) ) ) ; String request = "<seq2seq4repair_space><company>\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<seq2seq4repair_space><name>WSO2<//name>\n" + "<seq2seq4repair_space><usoffice>\n" ) + "<seq2seq4repair_space><address>\n" ) + "<seq2seq4repair_space><no>787<//no>\n" ) + "<seq2seq4repair_space><street>Castro<seq2seq4repair_space>Street,Mountain<seq2seq4repair_space>View<//street>\n" ) + "<seq2seq4repair_space><city>CA<//city>\n" ) + "<seq2seq4repair_space><code>94041<//code>\n" ) + "<seq2seq4repair_space><country>US<//country>\n" ) + "<seq2seq4repair_space><//address>\n" ) + "<seq2seq4repair_space><phone><seq2seq4repair_space>+1<seq2seq4repair_space>650<seq2seq4repair_space>745<seq2seq4repair_space>4499<//phone>\n" ) + "<seq2seq4repair_space><fax><seq2seq4repair_space>+1<seq2seq4repair_space>408<seq2seq4repair_space>689<seq2seq4repair_space>4328<//fax>\n" ) + "<seq2seq4repair_space><//usoffice>\n" ) + "<seq2seq4repair_space><europeoffice>\n" ) + "<seq2seq4repair_space><address>\n" ) + "<seq2seq4repair_space><no>2-6<seq2seq4repair_space><//no>\n" ) + "<seq2seq4repair_space><street>Boundary<seq2seq4repair_space>Row<//street>\n" ) + "<seq2seq4repair_space><city>London<//city>\n" ) + "<seq2seq4repair_space><code>SE1<seq2seq4repair_space>8HP<//code>\n" ) + "<seq2seq4repair_space><country>UK<//country>\n" ) + "<seq2seq4repair_space><//address>\n" ) + "<seq2seq4repair_space><phone>+44<seq2seq4repair_space>203<seq2seq4repair_space>318<seq2seq4repair_space>6025<//phone>\n" ) + "<seq2seq4repair_space><//europeoffice>\n" ) + "<seq2seq4repair_space><asiaoffice>\n" ) + "<seq2seq4repair_space><address>\n" ) + "<seq2seq4repair_space><no>20<//no>\n" ) + "<seq2seq4repair_space><street>Palm<seq2seq4repair_space>Grove<//street>\n" ) + "<seq2seq4repair_space><city>Colombo<seq2seq4repair_space>03<//city>\n" ) + "<seq2seq4repair_space><code>10003<//code>\n" ) + "<seq2seq4repair_space><country>LKA<//country>\n" ) + "<seq2seq4repair_space><//address>\n" ) + "<seq2seq4repair_space><phone>+94<seq2seq4repair_space>11<seq2seq4repair_space>214<seq2seq4repair_space>5345<//phone>\n" ) + "<seq2seq4repair_space><fax>+94<seq2seq4repair_space>11<seq2seq4repair_space>2145300<//fax>\n" ) + "<seq2seq4repair_space><//asiaoffice>\n" ) + "<seq2seq4repair_space><//company>\n" ) ; String response = sendRequest ( getProxyServiceURLHttp ( "OneToOneXmlToXml" ) , request , "text//xml" ) ; <START_BUG> Assert . assertEquals ( response , "<company><offices><asiaoffice><fax><seq2seq4repair_space>+1<seq2seq4repair_space>408<seq2seq4repair_space>689<seq2seq4repair_space>4328<//fax><phone><seq2seq4repair_space>+1<seq2seq4repair_space>650<seq2seq4repair_space>745<seq2seq4repair_space>4499<//phone><address>Castro<seq2seq4repair_space>Street,Mountain<seq2seq4repair_space>View<//address><//asiaoffice><europeoffice><fax>+94<seq2seq4repair_space>11<seq2seq4repair_space>2145300<//fax><phone>+94<seq2seq4repair_space>11<seq2seq4repair_space>214<seq2seq4repair_space>5345<//phone><address>Palm<seq2seq4repair_space>Grove<//address><//europeoffice><usoffice><phone>+44<seq2seq4repair_space>203<seq2seq4repair_space>318<seq2seq4repair_space>6025<//phone><address>Boundary<seq2seq4repair_space>Row<//address><//usoffice><//offices><//company>" ) ; <END_BUG> } @ Test ( groups = { "wso2.esb" } , description = "Datamapper<seq2seq4repair_space>simple<seq2seq4repair_space>one<seq2seq4repair_space>to<seq2seq4repair_space>one<seq2seq4repair_space>json<seq2seq4repair_space>to<seq2seq4repair_space>json<seq2seq4repair_space>conversion" ) public void testOneToOneJsonToJson ( ) throws Exception { } }

Fix:
Assert . assertEquals ( response , "<company><offices><asiaoffice><fax><seq2seq4repair_space>+1<seq2seq4repair_space>408<seq2seq4repair_space>689<seq2seq4repair_space>4328<//fax><phone><seq2seq4repair_space>+1<seq2seq4repair_space>650<seq2seq4repair_space>745<seq2seq4repair_space>4499<//phone><address>WSO220Colombo<seq2seq4repair_space>03<//address><//asiaoffice><europeoffice><fax>+94<seq2seq4repair_space>11<seq2seq4repair_space>2145300<//fax><phone>+94<seq2seq4repair_space>11<seq2seq4repair_space>214<seq2seq4repair_space>5345<//phone><address>WSO220Colombo<seq2seq4repair_space>03<//address><//europeoffice><usoffice><phone>+44<seq2seq4repair_space>203<seq2seq4repair_space>318<seq2seq4repair_space>6025<//phone><address>WSO2787CA<//address><//usoffice><//offices><//company>" ) ;