ErrorPages { public boolean hasErrorPage(int errorCode) { return errorCodes.get(errorCode) != null; } ErrorPages(ServletContext servletContext); boolean hasErrorPage(int errorCode); boolean hasErrorPage(String exceptionType); boolean hasErrorPage(Throwable exception);  }
@Test public void containsErrorPageForErrorCode() { assertTrue("Expected to have configured error page for status 400", errorPages.hasErrorPage(400)); }
@Test public void containsErrorPageForSomeException() { assertTrue("Expected to have configured error page for org.test.SomeException", errorPages.hasErrorPage("org.test.SomeException")); }