@Test(expected = RuntimeException.class)
  public void testCreatePreparesCodecInvalidClass() throws Exception {
    Configuration conf = new Configuration(false);
    conf.setStrings(WALCellCodec.WAL_CELL_CODEC_CLASS_KEY, "org.apache.hbase.wal.NoSuchClass");
    WALCellCodec.create(conf, null, null);
  }
Test that a custom {@link WALCellCodec} will fail if provided an invalid code class.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestCustomWALCellCodec.java