@Test
public void testParseAnalysisOldModeOfInheritanceConvertsToInheritanceModes() {

    Analysis analysis = instance.parseAnalysis(
            "analysis:\n"
                    + "    vcf: test.vcf\n"
                    + "    modeOfInheritance: AUTOSOMAL_DOMINANT\n"
                    + "    ");
    assertThat(analysis.getInheritanceModeOptions(), equalTo(InheritanceModeOptions.defaultForModes(ModeOfInheritance.AUTOSOMAL_DOMINANT)));
}