public class ProxyHanderUnitTest extends TestCase {
public void testSendNotFoundSends404ResponseCode() throws Exception {
ProxyHandler proxyHandler = new ProxyHandler(true, "", "", false, false);
HttpResponse httpResponseMock = createMock(HttpResponse.class);
httpResponseMock.sendError(HttpResponse.__404_Not_Found, "Not found");
expectLastCall().once();
replay(httpResponseMock);
proxyHandler.sendNotFound(httpResponseMock);
verify(httpResponseMock);
}