public class HttpInboundRequestTestCase extends RestletTestCase {
public void testRequestUri() throws Exception {
Engine.register(false);
Engine.getInstance().getRegisteredServers()
.add(new HttpServerHelper(null));
Server server = new Server(new Context(), Protocol.HTTP, 0);
server.start();
HttpServerHelper hsh = (HttpServerHelper) server.getContext()
.getAttributes().get("org.restlet.engine.helper");
Connection<Server> c = hsh.getConnectionPool().checkout();
HttpInboundRequest hir = new HttpInboundRequest(server.getContext(), c,
"GET",
"/control/accounts/netdev/subscriptions/emily/preferences",
"HTTP/1.1");