Hg38Config { public AlleleResource dbnsfpAlleleResource() { String namespacePrefix = "hg38.dbnsfp"; AlleleResourceProperties resourceProperties = getAlleleResourceProperties(namespacePrefix); Path resourcePath = resourceProperties.getAlleleResourcePath(); URL resourceUrl = resourceProperties.getAlleleResourceUrl(); if (resourcePath.toString().contains("dbNSFP4.")) { return new DbNsfp4AlleleResource(namespacePrefix, resourceUrl, resourcePath, DbNsfpColumnIndex.HG38); } return new DbNsfp3AlleleResource(namespacePrefix, resourceUrl, resourcePath, DbNsfpColumnIndex.HG38); }  @Bean Path hg38GenomePath(); @Bean Map<String, AlleleResource> hg38AlleleResources(); 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 testDbNsfpAlleleResource() throws Exception { AlleleResource alleleResource = instance.dbnsfpAlleleResource(); AlleleArchive expectedArchive = new DbNsfp3AlleleArchive(Paths.get("src/test/resources/hg19/variants/dbNSFPv3.4a.zip")); assertThat(alleleResource.getAlleleParser(), instanceOf(DbNsfpAlleleParser.class)); assertThat(alleleResource.getAlleleArchive(), equalTo(expectedArchive)); }