PathogenicityDataProvider extends AbstractFilterDataProvider { @Override public void provideVariantData(VariantEvaluation variantEvaluation) { if (variantEvaluation.getPathogenicityData().isEmpty()) { PathogenicityData pathData = variantDataService.getVariantPathogenicityData(variantEvaluation, pathogenicitySources); variantEvaluation.setPathogenicityData(pathData); } } PathogenicityDataProvider(VariantDataService variantDataService, Set<PathogenicitySource> pathogenicitySources, VariantFilter variantFilter); @Override void provideVariantData(VariantEvaluation variantEvaluation);  }
@Test public void testProvideVariantData() { instance = new PathogenicityDataProvider(variantDataService, EnumSet.of(POLYPHEN, SIFT, MUTATION_TASTER), new StubPassAllVariantFilter(FilterType.PATHOGENICITY_FILTER)); assertThat(variant.getPathogenicityData(), equalTo(EMPTY_PATH_DATA)); instance.provideVariantData(variant); assertThat(variant.getPathogenicityData(), equalTo(EXPECTED_PATH_DATA)); }