@Test
public void testParseAnalysisFileFromPath() {

    ModeOfInheritance modeOfInheritance = ModeOfInheritance.AUTOSOMAL_DOMINANT;
    Analysis analysis = instance.parseAnalysis(Paths.get("src/test/resources/analysisExample.yml"));
    System.out.println(analysis);
    assertThat(analysis.getVcfPath(), equalTo(Paths.get("test.vcf")));
    assertThat(analysis.getPedigree(), equalTo(Pedigree.empty()));
    assertThat(analysis.getHpoIds(), equalTo(hpoIds));
    assertThat(analysis.getInheritanceModeOptions(), equalTo(InheritanceModeOptions.defaultForModes(modeOfInheritance)));
    assertThat(analysis.getFrequencySources(), equalTo(frequencySources));
    assertThat(analysis.getPathogenicitySources(), equalTo(pathogenicitySources));
    analysisSteps.add(new IntervalFilter(new GeneticInterval(10, 123256200, 123256300)));
    analysisSteps.add(new GeneSymbolFilter(new LinkedHashSet<>(Arrays.asList("FGFR1", "FGFR2"))));
    analysisSteps.add(new QualityFilter(50.0f));
    analysisSteps.add(new VariantEffectFilter(EnumSet.of(VariantEffect.SYNONYMOUS_VARIANT)));
    analysisSteps.add(new KnownVariantFilter());
    analysisSteps.add(new FrequencyFilter(1.0f));
    analysisSteps.add(new PathogenicityFilter(false));
    analysisSteps.add(new InheritanceFilter(modeOfInheritance));
    analysisSteps.add(priorityFactory.makeOmimPrioritiser());
    analysisSteps.add(priorityFactory.makeHiPhivePrioritiser(HiPhiveOptions.defaults()));
    analysisSteps.add(priorityFactory.makeHiPhivePrioritiser(HiPhiveOptions.builder()
            .diseaseId("OMIM:101600")
            .candidateGeneSymbol("FGFR2")
            .build()));
    analysisSteps.add(new PriorityScoreFilter(PriorityType.HIPHIVE_PRIORITY, 0.7f));
    assertThat(analysis.getAnalysisSteps(), equalTo(analysisSteps));
}