URLBaseContextClassQualifiedTargeted test = execute(
URLBaseContextClassQualifiedTargeted.class,
ProtocolMetaData.class,
new ProtocolMetaData()
.addContext(new HTTPContext("NAME-A", "TEST-A-Y", 8080)
.add(new Servlet(URLServletContextClass.class.getSimpleName(), "/test-Y")))
.addContext(new HTTPContext("NAME-B", "TEST-B-Y", 8080)
.add(new Servlet(URLServletContextClass.class.getSimpleName(), "/test-Y"))),
new ProtocolMetaData()
.addContext(new HTTPContext("NAME-A", "TEST-A-X", 8080)
.add(new Servlet(URLServletContextClass.class.getSimpleName(), "/test-X")))
.addContext(new HTTPContext("NAME-B", "TEST-B-X", 8080)
.add(new Servlet(URLServletContextClass.class.getSimpleName(), "/test-X"))));
Assert.assertEquals("http://TEST-B-X:8080/test-X/", test.url.toExternalForm());
}