@Test
public void testBasicExceptions() throws Exception {
final IllegalStateException expectedIllegalStateException = new IllegalStateException("expectedIllegalStateException");
expectedIllegalStateException.fillInStackTrace();
final HandlerException expectedHandlerException = new HandlerException(expectedIllegalStateException);
expectedHandlerException.fillInStackTrace();
final Exception expectedException = new Exception("expectedException", expectedHandlerException);
expectedException.fillInStackTrace();
final Exception actualException = serDeser(expectedException, Exception.class);
final HandlerException actualHandlerException = (HandlerException)actualException.getCause();
final IllegalStateException actualIllegalStateException = (IllegalStateException)actualHandlerException.getCause();