private void ttlUpdateAuthorizationFailureTest() throws StoreException {
    MockId id = put(1, PUT_RECORD_SIZE, Utils.Infinite_Time).get(0);
    short[] accountIds = {-1, (short) (id.getAccountId() - 1), -1, id.getAccountId(), (short) (id.getAccountId() + 1)};
    short[] containerIds =
        {-1, -1, (short) (id.getContainerId() - 1), (short) (id.getContainerId() + 1), id.getContainerId()};
    for (int i = 0; i < accountIds.length; i++) {
      verifyTtlUpdateFailure(new MockId(id.getID(), accountIds[i], containerIds[i]), Utils.Infinite_Time,
          StoreErrorCodes.AuthorizationFailure);
    }
  }
Test TTL update with invalid accountId/containerId. Failure is expected.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java