Hg19Config { public AlleleResource dbSnpAlleleResource() { String namespacePrefix = "hg19.dbsnp"; AlleleResourceProperties resourceProperties = getAlleleResourceProperties(namespacePrefix); Path resourcePath = resourceProperties.getAlleleResourcePath(); URL resourceUrl = resourceProperties.getAlleleResourceUrl(); return new DbSnpAlleleResource(namespacePrefix, resourceUrl, resourcePath); }  @Bean Path buildDir(); @Bean Path hg19GenomePath(); @Bean Map<String, AlleleResource> hg19AlleleResources(); AlleleResource dbSnpAlleleResource(); AlleleResource clinVarAlleleResource(); AlleleResource espAlleleResource(); AlleleResource exacAlleleResource(); AlleleResource dbnsfpAlleleResource(); AlleleResource topmedAlleleResource(); AlleleResource uk10kAlleleResource(); AlleleResource gnomadGenomeAlleleResource(); AlleleResource gnomadExomeAlleleResource(); @Autowired
    public Environment environment; }
@Test public void dbSnpAlleleResource() throws Exception { AlleleResource alleleResource = instance.dbSnpAlleleResource(); AlleleArchive expectedArchive = new TabixAlleleArchive(Paths.get("src/test/resources/hg19/variants/00-All.vcf.gz")); assertThat(alleleResource.getAlleleParser(), instanceOf(DbSnpAlleleParser.class)); assertThat(alleleResource.getAlleleArchive(), equalTo(expectedArchive)); }