@Test
public void findDetectorMapping_successful() throws IOException {

    List<Map<String, String>> tagsList = new ArrayList<>();
    val detectorUuid = "aeb4d849-847a-45c0-8312-dc0fcf22b639";
    String id = "adsvade8^szx";
    Long LastModifiedTimeInMillis = new Long(1554828886);
    Long CreatedTimeInMillis = new Long(1554828886);
    GetResponse getResponse = mockGetResponse(id);
    when(legacyElasticSearchClient.get(any(GetRequest.class), eq(RequestOptions.DEFAULT))).thenReturn(getResponse);
    DetectorMapping detectorMapping = repoUnderTest.findDetectorMapping(id);
    verify(legacyElasticSearchClient, atLeastOnce()).get(any(GetRequest.class), eq(RequestOptions.DEFAULT));
    assertNotNull("Response can't be null", detectorMapping);
    assertEquals(id, detectorMapping.getId());
    assertEquals("test-user", detectorMapping.getUser().getId());
    assertEquals(LastModifiedTimeInMillis, Long.valueOf(detectorMapping.getLastModifiedTimeInMillis()));
    assertEquals(CreatedTimeInMillis, Long.valueOf(detectorMapping.getCreatedTimeInMillis()));
    assertTrue(detectorMapping.isEnabled());
    assertEquals(UUID.fromString(detectorUuid), detectorMapping.getDetector().getUuid());
}