UnackExceptionHandler { public void handleError(Message<?> errorMessage) throws Throwable { Assert.notNull(errorMessage); Throwable e = ((MessagingException) errorMessage.getPayload()).getCause(); throw e; }  void handleError(Message<?> errorMessage);  }
@Test(expected = IllegalArgumentException.class) public void testHandError_Throws_Exception_Given_Null_Message() throws Throwable { sut.handleError(null); }