@Test
  public void testReadWrite() throws Exception {
    byte[] row = Bytes.toBytes("row");
    byte[] qualifier = Bytes.toBytes("qualifier");
    byte[] value = Bytes.toBytes("value");
    try (Table table = conn.getTable(name.getTableName())) {
      Put put = new Put(row).addColumn(FAMILY, qualifier, value);
      table.put(put);
      Result result = table.get(new Get(row));
      assertArrayEquals(value, result.getValue(FAMILY, qualifier));
      table.delete(new Delete(row));
      assertFalse(table.exists(new Get(row)));
    }
  }
Test basic read write operation with different {@link ConnectionRegistry} implementations.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestBasicReadWriteWithDifferentConnectionRegistries.java