@Test
public void get() {

    val key = "metricKeyWithValue";
    val key2 = "metricKeyWithOutValue";
    detectors = Collections.singletonList(new Detector("cid", UUID.randomUUID()));
    detectorIds = CacheUtil.getDetectors(detectors);
    Mockito.when(cache.getIfPresent(key)).thenReturn(detectorIds);
    Assert.assertEquals(detectors, detectorMapperCache.get(key));
    verify(cache, times(1)).getIfPresent(key);
    Assert.assertEquals(Collections.emptyList(), detectorMapperCache.get(key2));
    verify(cache, times(1)).getIfPresent(key);
}