@Test
public void testGetUnicodeEmojis_withException() throws Exception {

    ObjectMapper objectMapper = mock(ObjectMapper.class);
    IOException exception = new IOException("test");
    when(objectMapper.readValue(any(URL.class), any(JavaType.class))).thenThrow(exception);
    try {
        LocalEmojiUtils.getUnicodeEmojis(objectMapper);
        fail();
    } catch (RuntimeException e) {
        assertEquals(exception, e.getCause());
    }
}