### Question:
RedisClientConnectionProperties { public int port() { return this.connection.getPort() == -1 ? Protocol.DEFAULT_PORT : this.connection.getPort(); } RedisClientConnectionProperties(URI connection); boolean isSSL(); String password(); String addr(); int port(); int database();  }### Answer:
@Test public void getConfiguredPort() { URI uri = URI.create(TEST_CONFIGURED_PORT); RedisClientConnectionProperties rcp = new RedisClientConnectionProperties(uri); assertEquals(8379, rcp.port()); }
@Test public void getDefaultPort() { URI uri = URI.create(TEST_DEFAULT_PORT); RedisClientConnectionProperties rcp = new RedisClientConnectionProperties(uri); assertEquals(Protocol.DEFAULT_PORT, rcp.port()); }