@Test
  public void testParseRpcSingle() throws Exception {
    ConnectionRegistryFactory.create(new URI("hbase+rpc://server1:123"), conf, user);
    assertEquals(1, mockedRpcRegistry.constructed().size());
    assertSame(user, args.get(1));
    Configuration conf = (Configuration) args.get(0);
    assertEquals("server1:123", conf.get(RpcConnectionRegistry.BOOTSTRAP_NODES));
  }
Make sure we can successfully parse the URI component
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestConnectionRegistryUriParsing.java