@Test
public void testTheNumberOfScannedComplexity() {

    sourceFile = ApexAstScanner.scanFile(new File("src/test/resources/metrics/complexity.cls"));
    assertThat(sourceFile.getInt(ApexMetric.COMPLEXITY)).isEqualTo(3);
}