@Test
public void failureExceptionShouldKeepCause() throws MojoFailureException {

    IllegalArgumentException cause = new IllegalArgumentException("not valid");
    FailureException failureException = new FailureException("Gurka", cause);
    expectedException.expect(MojoFailureException.class);
    expectedException.expectMessage("Gurka");
    expectedException.expectCause(is(cause));
    new ExceptionHandler(failureException).throwMojoFailureException();
}