buildResourceModels(StatusCollectionResource.class,
LocationResource.class);
_router = new RestLiRouter(pathRootResourceMap);
RestRequest request = createRequest(uri, "POST", version);
RoutingResult result = _router.process(request, new RequestContext());
assertNotNull(result);
assertEquals(result.getResourceMethod().getActionName(), "new_status_from_location");
assertEquals(result.getResourceMethod().getType(), ResourceMethod.ACTION);
assertEquals(result.getResourceMethod().getMethod().getParameterTypes(), new Class<?>[] { String.class });
assertEquals(result.getContext().getPathKeys().get("statusID"), 1L);