@Test
public void assignsRegulatoryVariantToBestPhenotypicMatchVariantAssociatedWithGeneInOtherTad() {

    addPriorityResultWithScore(gene1, 1d);
    TopologicalDomain tad1 = makeTad(1, 1, 20000, gene1);
    addPriorityResultWithScore(gene2, 0d);
    TopologicalDomain tad2 = makeTad(1, 40000, 80000, gene2);
    instance = makeInstance(PriorityType.HIPHIVE_PRIORITY, tad1, tad2);
    VariantEvaluation variant = regulatoryVariantInTad(tad2, gene2);
    instance.reassignRegulatoryRegionVariantToMostPhenotypicallySimilarGeneInTad(variant);
    assertThat(variant, isAssignedTo(gene2));
}