private void testConstructionFailure(StoreKey key, UUID sessionId, UUID incarnationId, Offset offset) {
    // journal based
    try {
      new StoreFindToken(offset, sessionId, incarnationId, true, null, null, UNINITIALIZED_RESET_KEY_VERSION);
      fail("Construction of StoreFindToken should have failed");
    } catch (IllegalArgumentException e) {
      // expected. Nothing to do.
    }

    // index based
    try {
      new StoreFindToken(key, offset, sessionId, incarnationId, null, null, UNINITIALIZED_RESET_KEY_VERSION);
      fail("Construction of StoreFindToken should have failed");
    } catch (IllegalArgumentException e) {
      // expected. Nothing to do.
    }
  }
Verify that construction of {@link StoreFindToken} fails
@param key the {@link StoreKey} to be used for constructing the {@link StoreFindToken}
@param sessionId the sessionId to be used for constructing the {@link StoreFindToken}
@param incarnationId the incarnationId to be used for constructing the {@link StoreFindToken}
@param offset the {@link Offset} to be used for constructing the {@link StoreFindToken}
ambry-store/src/test/java/com/github/ambry/store/StoreFindTokenTest.java