public void joinChannel(String name) {
        joinChannel(configuration.findChannel(name));
    }
@Test
    public void doJoinChannelTestKey() {
        endpoint.joinChannel("#chan2");
        verify(connection).doJoin("#chan2", "chan2key");
    }