### Question:
MappingInformation implements Comparable<MappingInformation> { @Override public int compareTo(MappingInformation o) { return 0; }  @Override String toString(); @Override int compareTo(MappingInformation o);  }### Answer:
@Test public void compare() { MappingInformation mappingInformation = MappingInformation.builder() .active(true) .queueNames(Collections.singleton("test")) .visibilityTimeout(1101) .build(); MappingInformation mappingInformation1 = MappingInformation.builder() .active(false) .queueNames(Collections.singleton("test")) .visibilityTimeout(1201) .build(); assertEquals(0, mappingInformation.compareTo(mappingInformation1)); }