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

    SearchMappingsRequest searchMappingsRequest = new SearchMappingsRequest();
    searchMappingsRequest.setUserId("test-user");
    searchMappingsRequest.setDetectorUuid(UUID.fromString("aeb4d849-847a-45c0-8312-dc0fcf22b639"));
    when(legacyElasticSearchClient.search(any(SearchRequest.class), eq(RequestOptions.DEFAULT))).thenThrow(new IOException());
    repoUnderTest.search(searchMappingsRequest);
}