@Test public void toIndex() {

  List<Ordinal> ordinals = Ordinal.natural().limit(100).collect(toList());
  for (Ordinal ordinal : ordinals) {
    assertThat(ordinals.get(ordinal.toIndex())).isSameAs(ordinal);
  }
}