@Parameterized.Parameters
  public static List<Object[]> data() {
    short[] versions = new short[]{PersistentIndex.VERSION_0, PersistentIndex.VERSION_1, PersistentIndex.VERSION_2,
        PersistentIndex.VERSION_3, PersistentIndex.VERSION_4};
    List<Object[]> parametersList = new ArrayList<>();
    for (short version : versions) {
      for (IndexMemState state : IndexMemState.values()) {
        parametersList.add(new Object[]{version, state});
      }
    }
    return parametersList;
  }
Running for all versions and {@link IndexMemState} values.
@return an array with the list of parameters for different iterations.
ambry-store/src/test/java/com/github/ambry/store/IndexSegmentTest.java