private void test_pathRedirection(String path, String targetPath) throws JsonParseException, JsonMappingException, IOException, DefaultChannelInvalidConfigException {
DefaultChannelComponent dcc = new DefaultChannelComponent();
dcc.readMappings();
URLMapping mapping = dcc.findURLMapping(Scheme.HTTPS, path);
MuleMessage mockMsg = mock(MuleMessage.class);
RestfulHttpRequest req = new RestfulHttpRequest();
req.setPath(path);
dcc.setMessagePropertiesFromMapping(req, mockMsg, mapping);
verify(mockMsg).setProperty(eq("http.host"), eq("localhost"), eq(PropertyScope.OUTBOUND));