### Question:
IdComparator implements Comparator<Short> { @Override public final int compare(Short seq1, Short seq2) { if (seq1 == null && seq2 == null) { return 0; } else if (seq1 == null) { return -1; } else if (seq2 == null) { return 1; } else { return compare(seq1.shortValue(), seq2.shortValue()); } }  @Override final int compare(Short seq1, Short seq2); final int compare(Short seq1, short seq2); final int compare(short seq1, Short seq2); final int compare(short seq1, short seq2); final boolean equals(Short seq1, Short seq2); final boolean equals(Short seq1, short seq2); final boolean equals(short seq1, Short seq2); final boolean equals(short seq1, short seq2); static final IdComparator instance; static final int MAX_SEQUENCE; }### Answer:
@Test @Parameters public final void testCompare(short id1, short id2, int expectedDiff) { assertEquals("compare(" + id1 + ", " + id2 + ") != " + expectedDiff, expectedDiff, IdComparator.instance.compare(id1, id2)); }