Hg38Config { public AlleleResource espAlleleResource() { String namespacePrefix = "hg38.esp"; AlleleResourceProperties resourceProperties = getAlleleResourceProperties(namespacePrefix); Path resourcePath = resourceProperties.getAlleleResourcePath(); URL resourceUrl = resourceProperties.getAlleleResourceUrl(); return new EspHg38AlleleResource(namespacePrefix, resourceUrl, resourcePath); }  @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 testEspAlleleResource() throws Exception { AlleleResource alleleResource = instance.espAlleleResource(); AlleleArchive expectedArchive = new EspAlleleArchive(Paths.get("src/test/resources/hg19/variants/ESP6500SI-V2-SSA137.GRCh38-liftover.snps_indels.vcf.tar.gz")); assertThat(alleleResource.getAlleleParser(), instanceOf(EspHg38AlleleParser.class)); assertThat(alleleResource.getAlleleArchive(), equalTo(expectedArchive)); }