### Question:
UnorderedPair { public static <T> UnorderedPair<T> of(T value1, T value2) { Set<T> set = ImmutableSet.of(value1, value2); return new UnorderedPair<>(set); }  static UnorderedPair<T> of(T value1, T value2); T getFirst(); T getSecond();  }### Answer:
@Test public void testEquality() { UnorderedPair<Integer> pair1 = UnorderedPair.of(1, 2); UnorderedPair<Integer> pair2 = UnorderedPair.of(2, 1); assertThat(pair1).isEqualTo(pair2); }
@Test public void testNotEquals() { assertThat(UnorderedPair.of(1, 2)).isNotEqualTo(UnorderedPair.of(1, 3)); }