private void doBadOffsetInputTest(LogSegmentName name, long offset) {
    try {
      new Offset(name, offset);
      fail("Should have thrown because one of the inputs is invalid");
    } catch (IllegalArgumentException e) {
      // expected.
    }
  }
Tests constructor of {@link Offset} with bad input.
@param name the name to use.
@param offset the offset to use.
ambry-store/src/test/java/com/github/ambry/store/OffsetTest.java