@Test(expected = IllegalArgumentException.class)
  public void testGetBucketCodecVersion1EncodeNegativeBucketId() {
    BucketCodec.getCodec(1).encode(new AcidOutputFormat.Options(null).bucket(-1).statementId(16));
  }
Test Bucket Codec version 1. Represents format of "bucket" property in Hive
3.0.
ql/src/test/org/apache/hadoop/hive/ql/io/TestBucketCodec.java