@Test
public void testGetAbsoluteAddress() {

    HttpServiceManager manager = new HttpServiceManager();
    manager.initFromConfig(null);

    String address1 = manager.getAbsoluteAddress(null, "/myservice");
    assertEquals("http://localhost:8181/cxf/myservice", address1);

    String address2 = manager.getAbsoluteAddress("/mycontext", "/myservice");
    assertEquals("http://localhost:8181/mycontext/myservice", address2);
}