private void expectRoutingException(String uri,
ProtocolVersion version,
String httpMethod,
String restliMethod) throws URISyntaxException
{
RestRequestBuilder builder = createRequestBuilder(uri, httpMethod, version);
if (restliMethod != null)
{
builder.setHeader("X-RestLi-Method", restliMethod);
}
RestRequest request = builder.build();
try
{
RoutingResult r = _router.process(request, new RequestContext());
fail("Expected RoutingException, got: " + r.toString());
}