@Test
public void testTheNumberOfScannedFunctions() {

    sourceFile = ApexAstScanner.scanFile(new File("src/test/resources/metrics/methods.cls"));
    assertThat(sourceFile.getInt(ApexMetric.METHODS)).isEqualTo(2);
}