public void joinChannels() {
        for (IrcChannel channel : configuration.getChannelList()) {
            joinChannel(channel);
        }
    }
@Test
    public void doJoinChannels() {
        endpoint.joinChannels();
        verify(connection).doJoin("#chan1");
        verify(connection).doJoin("#chan2", "chan2key");
    }