@Before
  public void setUp() {
    conf = HBaseConfiguration.create();
    user = mock(User.class);
    args = null;
    mockedRpcRegistry = mockConstruction(RpcConnectionRegistry.class, (mock, context) -> {
      args = context.arguments();
    });
    mockedZkRegistry = mockConstruction(ZKConnectionRegistry.class, (mock, context) -> {
      args = context.arguments();
    });
    mockedReflectionUtils = mockStatic(ReflectionUtils.class);
  }
Make sure we can successfully parse the URI component
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestConnectionRegistryUriParsing.java