@Test
public void testCompareTo() {

    //variants are sorted according to chromosome, position  ref and alt.
    VariantEvaluation zero = VariantEvaluation.builder(1, 1, "A", "C").build();
    VariantEvaluation one = VariantEvaluation.builder(1, 2, "A", "G").build();
    VariantEvaluation two = VariantEvaluation.builder(1, 2, "AC", "G").build();
    VariantEvaluation three = VariantEvaluation.builder(2, 1, "C", "T").build();
    VariantEvaluation four = VariantEvaluation.builder(2, 1, "C", "TT").build();
    List<VariantEvaluation> variants = Arrays.asList(zero, one, two, three, four);
    Collections.shuffle(variants);
    System.out.println("Shuffled:");
    variants.forEach(variant -> System.out.printf("chr: %2d pos: %2d ref: %-2s alt: %-2s%n", variant.getChromosome(), variant.getPosition(), variant.getRef(), variant.getAlt()));
    Collections.sort(variants);
    List<VariantEvaluation> expected = Arrays.asList(zero, one, two, three, four);
    System.out.println("Sorted:");
    variants.forEach(variant -> System.out.printf("chr: %2d pos: %2d ref: %-2s alt: %-2s%n", variant.getChromosome(), variant.getPosition(), variant.getRef(), variant.getAlt()));
    assertThat(variants, equalTo(expected));
}