@@ -0,0 +1,1073 @@
+package net.openhft.exceptionhandler;%0A%0Aimport java.math.BigInteger;%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.fail;%0Aimport org.junit.Test;%0A%0A/**%0A * The exception will be handled by the %7B@link LoggerExceptionHandler%7D when the%0A * test is executed%0A * as%3Cbr%3E%3Ccode%3Emvn test -Dtest=DebugExceptionHandlerTest%3C/code%3E%3Cbr%3E%0A * %3Cbr%3E%0A * The exception will be handled by the %7B@link GoogleExceptionHandler%7D when the%0A * test is executed%0A * as%3Cbr%3E%3Ccode%3Emvn test -Dtest=DebugExceptionHandlerTest -Dtest.args=-Djdwp=debug%3C/code%3E%0A *%0A * @author Frank Dietrich%0A */%0Apublic class DebugExceptionHandlerTest %7B%0A%0A    @Test%0A    public void test() %7B%0A        ExceptionHandler handler = new DebugExceptionHandler(%0A                LoggerExceptionHandler.INSTANCE,%0A                GoogleExceptionHandler.INSTANCE);%0A        try %7B%0A            Object o = 42L;%0A            BigInteger bi = (BigInteger) o;%0A            assertTrue(true);%0A        %7D catch (ClassCastException e) %7B%0A            handler.onException(e.getMessage(), e);%0A            fail(e.getMessage());%0A        %7D%0A    %7D%0A%7D%0A

add test to demonstrate usage of DebugExceptionHandler