Index: src/test/java/org/wso2/carbon/registry/integration/ui/patches/Registry1103EndpointAddTestCase.java
===================================================================
--- src/test/java/org/wso2/carbon/registry/integration/ui/patches/Registry1103EndpointAddTestCase.java	(revision 0)
+++ src/test/java/org/wso2/carbon/registry/integration/ui/patches/Registry1103EndpointAddTestCase.java	(working copy)
@@ -0,0 +1,108 @@
+/*
+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+ *
+ * WSO2 Inc. licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.wso2.carbon.registry.integration.ui.patches;
+
+import org.apache.axis2.AxisFault;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+import org.wso2.carbon.automation.api.selenium.login.LoginPage;
+import org.wso2.carbon.automation.core.BrowserManager;
+import org.wso2.carbon.automation.core.ProductConstant;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.registry.integration.ui.GregUiIntegrationTest;
+import org.wso2.carbon.utils.CarbonUtils;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.util.Scanner;
+
+import static org.testng.Assert.assertTrue;
+
+/**
+ * This test case is the fix for the patch WSO2-CARBON-PATCH-4.2.0-1103
+ * https://wso2.org/jira/browse/CARBON-14768
+ *
+ * Problem domain of the patch was when login the Registry, add an endpoint SOF was found in the
+ * carbon.log file.
+ */
+public class Registry1103EndpointAddTestCase extends GregUiIntegrationTest {
+
+    private static final Log log = LogFactory.getLog(Registry1103EndpointAddTestCase.class);
+    private WebDriver driver;
+    private static final String STACK_OVERFLOW_ERROR_MESSAGE = "StackOverflowError";
+    private static final String LOG_FILE = "wso2carbon.log";
+    private String carbonHome;
+
+    @BeforeClass(alwaysRun = true)
+    public void setUp() throws Exception {
+        super.init();
+        driver = BrowserManager.getWebDriver();
+        driver.get(getLoginURL(ProductConstant.GREG_SERVER_NAME));
+        // Get the carbon home
+        carbonHome = CarbonUtils.getCarbonHome();
+    }
+
+    @Test(groups = "wso2.greg", description = "Verify adding new endpoint")
+    public void test() throws IOException {
+        try {
+            // Login to server
+            LoginPage loginPage = new LoginPage(driver);
+            loginPage.loginAs(userInfo.getUserName(), userInfo.getPassword());
+
+            // Add endpoint
+            driver.findElement(By.linkText("Endpoint")).click();
+            driver.findElement(By.id("id_Overview_Name")).sendKeys("myendpoint");
+            driver.findElement(By.id("id_Overview_Version")).sendKeys("1.0.0");
+            driver.findElement(By.id("id_Overview_Address"))
+                    .sendKeys("http://localhost:9000/services/SimpleStockQutoteService");
+            driver.findElement(By.xpath("//input[contains(@class,'button registryWriteOperation')]")).click();
+            log.info("Endpoint added successfully");
+
+            // Read the logs
+            String readCarbonLogs = readCarbonLogs();
+            log.info("Read the " + LOG_FILE + " file successfully");
+            assertTrue(!readCarbonLogs.contains(STACK_OVERFLOW_ERROR_MESSAGE), "Error StackOverflowError encountered");
+        } finally {
+            driver.close();
+        }
+
+    }
+
+    /**
+     * Method to read the carbon.log file content
+     * @return log content as a string
+     * @throws FileNotFoundException Log file cannot be find
+     */
+    private String readCarbonLogs() throws FileNotFoundException {
+        File carbonLogFile = new File(carbonHome + File.separator + "repository" + File.separator +
+                "logs" + File.separator + LOG_FILE);
+        return new Scanner(carbonLogFile).useDelimiter("\\A").next();
+    }
+
+    @AfterClass(alwaysRun = true, groups = { "wso2.greg" })
+    public void tearDown() throws RegistryException, AxisFault {
+
+        driver.quit();
+    }
+}
Index: src/test/resources/testng.xml
===================================================================
--- src/test/resources/testng.xml	(revision 30632)
+++ src/test/resources/testng.xml	(working copy)
@@ -23,6 +23,7 @@
             <class name="org.wso2.carbon.registry.integration.ui.ServiceTestCase"/>
             <class name="org.wso2.carbon.registry.integration.ui.UriTestCase"/>
             <class name="org.wso2.carbon.registry.integration.ui.WsdlTestCase"/>
+            <class name="org.wso2.carbon.registry.integration.ui.patches.Registry1103EndpointAddTestCase"/>
 
         </classes>
     </test>
