### Question:
RedisClientConnectionProperties { public String password() { if (this.connection.getUserInfo() == null || !this.connection.getUserInfo().contains(":")) { return null; } return this.connection.getUserInfo().split(":", 2)[1]; } RedisClientConnectionProperties(URI connection); boolean isSSL(); String password(); String addr(); int port(); int database();  }### Answer:
@Test public void getConfiguredPassword() { URI uri = URI.create(TEST_PASSWORD_URI); RedisClientConnectionProperties rcp = new RedisClientConnectionProperties(uri); assertEquals("S0meP@ssw0rd", rcp.password()); }
@Test public void getNullWhenNoPassword() { URI uri = URI.create(TEST_NO_PASSWORD_URI); RedisClientConnectionProperties rcp = new RedisClientConnectionProperties(uri); assertNull(rcp.password()); }