public void start(XmppDeviceFactory deviceFactory) {
        log.info("XMPP Server has started.");
        this.run(deviceFactory);
    }
@Test
    public void testStart() {
        XmppDeviceFactory mockXmppDeviceFactory = EasyMock.createMock(XmppDeviceFactory.class);
        server.start(mockXmppDeviceFactory);
        assertNotNull(server.channel);
        assertNotNull(server.channelClass);
        assertNotNull(server.eventLoopGroup);
    }