### Question:
Replacements { public Set<Replacement> descending() { return new LinkedHashSet<>(replacements.values()); }  Replacements add(Replacement replacement); Replacements add(Replacement replacement, CoalescePolicy coalescePolicy); Set<Replacement> descending(); boolean isEmpty();  }### Answer:
@Test public void descending() { assertThat( Iterables.transform( new Replacements() .add(Replacement.create(0, 0, "hello")) .add(Replacement.create(0, 1, "hello")) .descending(), AS_RANGES)) .containsExactly(Range.closedOpen(0, 1), Range.closedOpen(0, 0)) .inOrder(); assertThat( Iterables.transform( new Replacements() .add(Replacement.create(0, 1, "hello")) .add(Replacement.create(0, 0, "hello")) .descending(), AS_RANGES)) .containsExactly(Range.closedOpen(0, 1), Range.closedOpen(0, 0)) .inOrder(); }