@Test(expected = IllegalArgumentException.class)
  public void testGetBucketCodecVersion1EncodeNegativeStatementId() {
    // A value of "-1" is acceptable
    BucketCodec.getCodec(1).encode(new AcidOutputFormat.Options(null).bucket(7).statementId(-2));
  }
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