@Test
public void testGetEmojis() throws Exception {

    WebResource emojiResource = mock(WebResource.class);
    when(mockResource.path("emoji.list")).thenReturn(emojiResource);
    URI emojiURI = Resources.getResource("slack_api_responses/emoji.list.txt").toURI();
    Path emojiPath = Paths.get(emojiURI);
    String emojiResponseStr = new String(Files.readAllBytes(emojiPath));
    doReturn(emojiResponseStr).when(underTest).getJsonResultWithRetries(emojiResource,
                                                                        apiRetries);
    Map<String, String> result = underTest.getEmojis();
    assertEquals(3, result.size());
    assertTrue(result.containsKey("bowtie"));
    assertEquals("https://my.slack.com/emoji/bowtie/46ec6f2bb0.png", result.get("bowtie"));
    assertTrue(result.containsKey("squirrel"));
    assertEquals("https://my.slack.com/emoji/squirrel/f35f40c0e0.png", result.get("squirrel"));
    assertTrue(result.containsKey("shipit"));
    assertEquals("https://my.slack.com/emoji/squirrel/f35f40c0e0.png", result.get("shipit"));
}