LocalChatDao implements IChatApiDAO { @Override public Map<String, User> getUsersForRoom(Room room) { return users; } LocalChatDao(ChatAlyticsConfig config); @Override Map<String, Room> getRooms(); @Override Map<String, User> getUsers(); @Override Map<String, User> getUsersForRoom(Room room); @Override List<Message> getMessages(DateTime start, DateTime end, Room room); @Override Map<String, String> getEmojis();  }
@Test public void testGetUsersForRoom() { Map<String, User> expected = underTest.getUsers(); Map<String, User> result = underTest.getUsersForRoom(mock(Room.class)); assertNotNull(result); assertFalse(result.isEmpty()); assertEquals(expected, result); }