assertEquals("myName", request.getAttribute("javax.servlet.error.servlet_name"));
}
@Test
public void setError() {
ExceptionCodeMapping mapping = new ExceptionCodeMapping() {
public int getExceptionCode(Throwable exception) {
if (exception instanceof FileNotFoundException) {
return 404;
} else if (exception instanceof IOException) {
return 500;