LocalChatDao implements IChatApiDAO { @Override public List<Message> getMessages(DateTime start, DateTime end, Room room) { throw new UnsupportedOperationException("Can't get message history from a local chat API"); } 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 (expected = UnsupportedOperationException.class) public void testGetMessages() { underTest.getMessages(DateTime.now(), DateTime.now(), mock(Room.class)); }