### Question:
MarkerComparator implements Comparator<Marker> { @SuppressWarnings("unchecked") public boolean contains(Marker container, Marker test) { for (FieldPartitioner field : Accessor.getDefault().getFieldPartitioners(strategy)) { Object containerValue = container.valueFor(field); if (containerValue != null) { Object testValue = test.valueFor(field); if (testValue == null || field.compare(containerValue, testValue) != 0) { return false; } } } return true; } MarkerComparator(PartitionStrategy strategy); @SuppressWarnings("unchecked") boolean contains(Marker container, Marker test); @Override @SuppressWarnings("unchecked") int compare(Marker m1, Marker m2); @SuppressWarnings("unchecked") int rightCompare(Marker m1, Marker m2); @SuppressWarnings("unchecked") int leftCompare(Marker m1, Marker m2); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testContains() { Assert.assertTrue(comparator.contains(OCT, OCT_12)); Assert.assertTrue(comparator.contains(OCT, OCT)); Assert.assertFalse(comparator.contains(OCT_12, OCT)); Assert.assertFalse(comparator.contains(OCT, SEPT)); Assert.assertFalse(comparator.contains(OCT, SEPT_30)); Assert.assertFalse(comparator.contains(OCT, NOV)); Assert.assertFalse(comparator.contains(OCT, NOV_1)); }