### Question:
DocumentationNameComparator implements Comparator<Documentation>, Serializable { @Override public int compare(final Documentation o1, final Documentation o2) { return o1.getObjectName().compareToIgnoreCase(o2.getObjectName()); }  @Override int compare(final Documentation o1, final Documentation o2);  }### Answer:
@Test public void testCompare() { final String objectNameA = "objectNameA"; final Documentation docA = mock(Documentation.class); when(docA.getObjectName()).thenReturn(objectNameA); final String objectNameB = "objectNameB"; final Documentation docB = mock(Documentation.class); when(docB.getObjectName()).thenReturn(objectNameB); assertThat(comparator.compare(docA, docB)).isEqualTo(objectNameA.compareToIgnoreCase(objectNameB)); }