IRequestHandler handler = encoder.mapRequest(getRequest(originalUrl));
SwitchProtocolRequestHandler switchProtocolRequestHandler = new SwitchProtocolRequestHandler(
Protocol.HTTPS, handler, new HttpsConfig());
Url mappedUrl = encoder.mapHandler(switchProtocolRequestHandler);
assertEquals(originalUrl, mappedUrl);
}
@RequireHttps
private static class SecuredMockPage extends MockPage