    @Test
    public void testNoSuchMethodError() {

        MojoExecution execution = mock(MojoExecution.class);
        when(execution.getVersion()).thenThrow(new NoSuchMethodError());

        assertFalse(WRONG_MAVEN_DETECTION, FindBugsPlugin.isFindBugs2x(execution));
    }