### Question:
DiagnosisHittingSet { public boolean contains(DiagnosisElement otherElement) { Preconditions.notNull(otherElement); return diagnosisElements.stream() .anyMatch(diagnosisElement -> diagnosisElement.equals(otherElement)); } DiagnosisHittingSet(List<DiagnosisElement> diagnosisElements); List<DiagnosisElement> getDiagnosisElements(); boolean covers(DiagnosisHittingSet other); boolean contains(DiagnosisElement otherElement); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void testContains() { final DiagnosisHittingSet a = new DiagnosisHittingSet(asList( new DiagnosisElement(1, new int[] {1}, new int[] {1}), new DiagnosisElement(2, new int[] {0, 1}, new int[] {0, 1}))); assertTrue(a.contains(new DiagnosisElement(1, new int[] {1}, new int[] {1}))); assertTrue(a.contains(new DiagnosisElement(2, new int[] {0, 1}, new int[] {0, 1}))); assertFalse(a.contains(new DiagnosisElement(1, new int[] {0, 1}, new int[] {0, 1}))); assertFalse(a.contains(new DiagnosisElement(2, new int[] {1, 1}, new int[] {0, 1}))); assertFalse(a.contains(new DiagnosisElement(2, new int[] {0, 1}, new int[] {1, 1}))); }