@Test
public void testAnnotatedVariantGeneSymbolWhitespaceIsReplacedWithUnderscore() {

    GeneIdentifier incorrectGeneSymbol = GeneIdentifier.builder()
            .geneId("6469")
            //this should not have spaces in the VCF file
            .geneSymbol("SHH alpha spaces")
            .hgncId("HGNC:10848")
            .hgncSymbol("SHH")
            .entrezId("6469")
            .ensemblId("ENSG00000164690")
            .ucscId("uc003wmk.2")
            .build();
    Gene gene = new Gene(incorrectGeneSymbol);
    gene.addVariant(shhIndelVariant);
    gene.addPriorityResult(new OmimPriorityResult(gene.getEntrezGeneID(), gene.getGeneSymbol(), 1f, Collections.emptyList(), Collections.emptyMap()));
    gene.setCompatibleInheritanceModes(EnumSet.of(ModeOfInheritance.AUTOSOMAL_DOMINANT));
    AnalysisResults analysisResults = buildAnalysisResults(gene);
    String vcf = instance.writeString(ModeOfInheritance.AUTOSOMAL_DOMINANT, analysis, analysisResults, settings);
    final String expected = EXPECTED_HEADER
            + "chr7\t155604800\t.\tC\tCTT\t1\t.\tExGeneSCombi=0.0;ExGeneSPheno=0.0;ExGeneSVar=0.0;ExGeneSymbId=6469;ExGeneSymbol=SHH_alpha_spaces;ExVarEff=frameshift_variant;ExVarHgvs=7:g.155604800C>CTT;ExVarScore=1.0;RD=30\tGT:RD\t0/1:30\n";
    assertThat(vcf, equalTo(expected));
}