diff --git a/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java b/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java
index f8f1b5bf9b..d4fc355fee 100644
--- a/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java
+++ b/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java
@@ -146,8 +146,8 @@ public void testPayloadFactoryXMLToJson() throws IOException {
String expectedResponse = "{\n" +
" \"string\": \"John<\",\n" +
- " \"escapedObject\": \"catemily\\\\ntini\",\n" +
- " \"escapedObject2\": \"\\n dog<\\n John\\\\nWayne\\n \",\n" +
+ " \"escapedObject\": \"catemily\\\\\\\\ntini\",\n" +
+ " \"escapedObject2\": \"\\n dog<\\n John\\\\\\\\nWayne\\n \",\n" +
" \"object\": {\n" +
" \"pet\": {\n" +
" \"type\": \"cat\",\n" +