@Test
public void failureExceptionShouldThrowMojoFailureException() throws MojoFailureException {

    FailureException failureException = new FailureException("Gurka");
    expectedException.expect(MojoFailureException.class);
    expectedException.expectMessage("Gurka");
    new ExceptionHandler(failureException).throwMojoFailureException();
}