assertEquals("401", response.get(HTTPConstants.RESPONSE_CODE));
assertEquals("Basic realm=\"private:12345\"", response.get("WWW-Authenticate"));
}
public void testIncorrectlyAuthorized() {
request = new LocalRequest("private/12345");
request.put("Authorization", "Basic 12345:2222");
response = server.request(request);
assertEquals("401", response.get(HTTPConstants.RESPONSE_CODE));
assertEquals("Basic realm=\"private:12345\"", response.get("WWW-Authenticate"));
}