@Test
public void serviceReturnsLocalFrequencyDataForVariant() {

    FrequencyData localFrequencyData = FrequencyData.of(RsId.empty(), Frequency.of(FrequencySource.LOCAL, 2f));
    Mockito.when(defaultFrequencyDao.getFrequencyData(variant)).thenReturn(FrequencyData.empty());
    Mockito.when(localFrequencyDao.getFrequencyData(variant)).thenReturn(localFrequencyData);
    FrequencyData result = instance.getVariantFrequencyData(variant, EnumSet.of(FrequencySource.LOCAL));
    assertThat(result, equalTo(localFrequencyData));
}