ServerConfig config;
@Before
public void setUp() throws Exception {
config = new ServerConfig();
ServiceConfig serviceConfig = new ServiceConfig();
ServiceUrl serviceUrl = new ServiceUrl(config);
serviceUrl.setHandlerName("ReverseHandler");
serviceUrl.setPath("/test2/");
serviceUrl.setType(ServiceType.REVERSE);
reverseUrl = new DefaultReverseUrl(serviceUrl);
reverseUrl.setReverse(new URL("http://localhost:8080/test/"));
serviceUrl.setReverseUrl(reverseUrl);
serviceConfig.addServiceUrl(serviceUrl);
serviceUrl = serviceConfig.getServiceUrl("/test2/");
reverseUrl = serviceUrl.getReverseUrl();
}