@Test
public void handleError_WithException() throws Exception {
Exception e = new Exception("testing");
ErrorHandler errorHandler = new DefaultErrorHandler();
View view = errorHandler.handleError(e, properties);
assertTrue(view instanceof PlainText);
PlainText stackTrace = (PlainText) view;
assertTrue(stackTrace.toString().startsWith("java.lang.Exception: testing"));
}