@Test
public void testGetUsers() throws Exception {

    // users.list
    WebResource mockUserResource = mock(WebResource.class);
    when(mockResource.path("users.list")).thenReturn(mockUserResource);
    URI userListURI = Resources.getResource("slack_api_responses/users.list.txt").toURI();
    Path usersPath = Paths.get(userListURI);
    String usersResponseStr = new String(Files.readAllBytes(usersPath));
    doReturn(usersResponseStr).when(underTest).getJsonResultWithRetries(mockUserResource,
                                                                        apiRetries);
    Map<String, User> users = underTest.getUsers();
    assertEquals(2, users.size());
    for (User user : users.values()) {
        assertNotNull(user);
    }
}