PoolKeyUtils { public static String getKey(RpcHost host, String credentials) { return RpcUriUtils.toUriString(host, ConnectionSpecFactory.create(credentials)); }  static String getKey(RpcHost host, String credentials); static String keyToUriString(Object key); @Deprecated static URI keyToURI(Object key); static ConnectionSpec keyToConnectionSpec(Object key);  }
@Test public void testGetKeyWithHostAndAccessVerifyCode() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "foo;bar"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostAndAccessVerifyCodeAndDivision() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "960:foo;bar"), equalTo("vrpcb: }
@Test public void testGetKeyWithAccessVerifyCodeAndNewVerifyCode() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "foo;bar;baz;baz"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostAndAccessVerifyCodeAndDivisionAndNewVerifyCode() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "960:foo;bar;baz;baz"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostClientInfoAndAccessVerifyCode() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "www.example.org(123.45.67.89)foo;bar"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostClientInfoAndAccessVerifyCodeAndDivision() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "www.example.org(123.45.67.89)960:foo;bar"), equalTo("vrpcb: }
@Test public void testGetKeyWithClientInfoAccessVerifyCodeAndNewVerifyCode() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "www.example.org(123.45.67.89)foo;bar;baz;baz"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostClientInfoAndAccessVerifyCodeAndDivisionAndNewVerifyCode() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "www.example.org(123.45.67.89)960:foo;bar;baz;baz"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostAndAnonymousCredentials() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), AnonymousConnectionSpec.ANONYMOUS), equalTo("vrpcb: }
@Test public void testGetKeyWithHostAndAppHandle() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "www.example.org(123.45.67.89)A1B2C3D4E5F6"), equalTo("vrpcb: }
@Test public void testGetKeyWithHostAndAppHandleAndDivision() throws Exception { assertThat(PoolKeyUtils.getKey(new RpcHost("example.org", 9060), "www.example.org(123.45.67.89)960:A1B2C3D4E5F6"), equalTo("vrpcb: }