FilterSettingsImpl implements FilterSettings { @Override public Set<String> getGenesToKeep() { return genesToKeep; } private  FilterSettingsImpl(FilterSettingsBuilder builder); static FilterSettingsBuilder builder(); @Override float getMaximumFrequency(); @Override float getMinimumQuality(); @Override GeneticInterval getGeneticInterval(); @Override boolean keepOffTargetVariants(); @Override boolean removeFailedVariants(); @Override boolean removeKnownVariants(); @Override boolean keepNonPathogenicVariants(); @Override Set<String> getGenesToKeep(); @Override ModeOfInheritance getModeOfInheritance(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGenesToKeep() { Set<String> genesToKeep = new LinkedHashSet<>(); genesToKeep.add("1"); genesToKeep.add("2"); genesToKeep.add("3"); instance = builder.genesToKeep(genesToKeep).build(); assertThat(instance.getGenesToKeep(), equalTo(genesToKeep)); }