    @Test
    void should_report_violations() {


        // given
        addOneJavaFile(Type.MAIN);
        final RuleViolation pmdViolation = violation();
        final Report report = report(pmdViolation);
        when(executor.execute()).thenReturn(report);

        // when
        pmdSensor.execute(sensorContext);

        // then
        verify(pmdViolationRecorder).saveViolation(pmdViolation, sensorContext);
    }