@Test
public void testAddPathogenicityFilter() {

    analysisBuilder.genomeAssembly(GenomeAssembly.HG19);
    analysisBuilder.pathogenicitySources(EnumSet.allOf(PathogenicitySource.class));
    boolean keepNonPathogenic = true;
    analysisBuilder.addPathogenicityFilter(keepNonPathogenic);
    assertThat(buildAndGetSteps(), equalTo(singletonList(new PathogenicityFilter(keepNonPathogenic))));
}