Since there is no servlet installed in the remote deployment, I am trying to locate the CommandEventBus request URI.
I am checking that all servlets are in the same context. If true, then I construct the URI with the root context as base. Otherwise the URI has no root context.
I am using the same algorithm as in here https://github.com/arquillian/arquillian-core/blob/master/container/test-impl-base/src/main/java/org/jboss/arquillian/container/test/impl/enricher/resource/URLResourceProvider.java at `locateURL` method:

here is the relevant code snippet:

    // TODO: evaluate, if all servlets are in the same context, and only one context exists, we can find the context         
         else if(allInSameContext(context.getServlets()))
         {
            return toURL(context.getServlets().get(0));
         }
         else
         {
            return toURL(context);
         }

I don't know if there is a case where not all servlets are in the same context though...
Maybe there is a better way to do that? Please advise.