@Test
public void testReassignGeneToMostPhenotypicallySimilarGeneInAnnotationsVariantEffectIsNullIsNotAltered() {

    addPriorityResultWithScore(gene1, 1d);
    addPriorityResultWithScore(gene2, 0d);
    TopologicalDomain tad = makeTad(1, 1, 20000, gene1, gene2);
    instance = makeInstance(PriorityType.HIPHIVE_PRIORITY, tad);
    VariantEvaluation variant = regulatoryVariantInTad(tad, gene2);
    VariantEffect originalVariantEffect = variant.getVariantEffect();
    TranscriptAnnotation nullEffectAnnotation = TranscriptAnnotation.builder()
            .geneSymbol(gene2.getGeneSymbol())
            .variantEffect(null)
            .build();
    List<TranscriptAnnotation> originalAnnotations = Collections.singletonList(nullEffectAnnotation);
    variant.setAnnotations(originalAnnotations);
    instance.reassignGeneToMostPhenotypicallySimilarGeneInAnnotations(variant);
    assertThat(variant, isAssignedTo(gene2));
    assertThat(variant.getVariantEffect(), equalTo(originalVariantEffect));
    assertThat(variant.getTranscriptAnnotations(), equalTo(originalAnnotations));
}