assertRedirect(request, targetBaseUri+"/dummy?a=b", sourceBaseUri+"/dummy?a=b");
}
private void assertRedirect(GetMethodWebRequest request, String origRedirect, String resultRedirect) throws IOException, SAXException {
request.setHeaderField("xxTarget", origRedirect);
WebResponse rsp = sc.getResponse( request );
assertEquals(HttpStatus.SC_MOVED_TEMPORARILY,rsp.getResponseCode());
assertEquals("",rsp.getText());
String gotLocation = rsp.getHeaderField(HttpHeaders.LOCATION);
assertEquals(resultRedirect, gotLocation);
}