    @Test
    public void aCheckstyleExceptionThatHasACauseOfAnyOtherExceptionIsWrappedInAPluginException() {

        assertThat(
                new ExceptionWrapper()
                        .wrap(null, new CheckstyleException("aTestException", new IllegalStateException("aTestException"))),
                is(instanceOf(CheckStylePluginException.class)));
    }