ErrorHandler eh = new StrictErrorHandler();
Throwable cause = new NullPointerException();
try
{
eh.error(null, "An error message.", null, cause);
unreachable();
}
catch (ApplicationRuntimeException ex)
{
assertEquals("Error: An error message.", ex.getMessage());