JUnit tests for Comparator