File file = new File(dir, "testfile");
assertTrue(file.createNewFile());
DeleteFileResponder responder = new DeleteFileResponder();
request.addInput("filename", "testfile");
request.setResource("files/");
Response response = responder.makeResponse(context, request);
assertFalse(file.exists());
assertEquals(303, response.getStatus());
assertEquals("/files/", response.getHeader("Location"));
}