@Test
public void testRunAnalysis() {

    QAvalidatorConfig config = new QAvalidatorConfig();
    config.setAnalysisFilename("classpath:/default_analysis.groovy");
    config.setInputDirs(Lists.newArrayList("./build/classes/java/main"));
    config.setOutputDir("./build/result-default-architecture");
    QAvalidatorResult result = new QAvalidator().runAnalysis(config);
    assertThat(result, notNullValue());
    assertThat(result.getFailedSteps(), hasSize(0));
    assertThat(result.isFailedWithException(), is(false));
    assertThat(result.getExceptionMessage(), nullValue());
}