// to allow different strategies for testing a clustered deployment.
ObjectName wlServerRuntime = wlServerRuntimes[0];
String httpUrlAsString = (String) connection.invoke(wlServerRuntime, "getURL",
new Object[] {"http"}, new String[] {"java.lang.String"});
URL serverHttpUrl = new URL(httpUrlAsString);
httpContext = new HTTPContext(serverHttpUrl.getHost(), serverHttpUrl.getPort());
ObjectName[] servletRuntimes = findServletRuntimes(wlServerRuntime, deploymentName);
for (ObjectName servletRuntime : servletRuntimes)
{
String servletName = (String) connection.getAttribute(servletRuntime, "ServletName");
String servletContextRoot = (String) connection.getAttribute(servletRuntime, "ContextPath");