@Test
public void serviceReturnsSpecifiedFrequencyDataForVariant() {

    FrequencyData frequencyData = FrequencyData.of(RsId.of(234567), Frequency.of(FrequencySource.ESP_AFRICAN_AMERICAN, 1f), Frequency
            .of(FrequencySource.ESP_EUROPEAN_AMERICAN, 1f));
    Mockito.when(defaultFrequencyDao.getFrequencyData(variant)).thenReturn(frequencyData);
    FrequencyData result = instance.getVariantFrequencyData(variant, EnumSet.of(FrequencySource.ESP_AFRICAN_AMERICAN));
    assertThat(result, equalTo(FrequencyData.of(RsId.of(234567), Frequency.of(FrequencySource.ESP_AFRICAN_AMERICAN, 1f))));
}