public static final String WWW_Authenticate = "WWW-Authenticate";
/** OPTIONS request at given path must return a WWW-Authenticate header */
private void doTestOnPath(String path) throws Exception {
final HttpClient noCredentialsClient = new HttpClient();
final HttpAnyMethod opt = new HttpAnyMethod("OPTIONS", HTTP_BASE_URL + path);
final int status = noCredentialsClient.executeMethod(opt);
assertEquals("Expecting matching status on OPTIONS request at " + path, 401, status);
final Header h = opt.getResponseHeader(WWW_Authenticate);
assertNotNull("Expecting " + WWW_Authenticate + " header in response at " + path, h);
}