public void setConfiguration(Dictionary<?, ?> properties) {
        String port = get(properties, XMPP_PORT);
        if (!Strings.isNullOrEmpty(port)) {
            this.port = Integer.parseInt(port);
        }
        log.debug("XMPP port set to {}", this.port);
    }
@Test
    public void testSetConfiguration() {
        Dictionary<String, String> properties = new Hashtable<>();
        properties.put("xmppPort", "5222");
        server.setConfiguration(properties);
        assertThat(server.port, is(5222));
    }