@Test(expected = RuntimeException.class)
public void findDetectorMapping_fail() throws IOException {

    String id = "adsvade8^szx";
    when(legacyElasticSearchClient.get(any(GetRequest.class), eq(RequestOptions.DEFAULT))).thenThrow(new IOException());
    repoUnderTest.findDetectorMapping(id);
}