### Question:
FullLattice { public Collection<LatticeMD> findViolated(SimilaritySet similaritySet) { return lattice.findViolated(similaritySet); }  Optional<LatticeMD> addIfMinimalAndSupported(MD md); Collection<LatticeMD> findViolated(SimilaritySet similaritySet); int getDepth(); Collection<LatticeMD> getLevel(int level); void markNotSupported(MDSite lhs); int size();  }### Answer:
@Test public void testFindViolated() { FullLattice fullLattice = new FullLattice(lattice, notSupported); LatticeMD latticeMD = Mockito.mock(LatticeMD.class); SimilaritySet similaritySet = Mockito.mock(SimilaritySet.class); when(lattice.findViolated(similaritySet)).thenReturn(Collections.singletonList(latticeMD)); Collection<LatticeMD> violated = fullLattice.findViolated(similaritySet); assertThat(violated).hasSize(1); assertThat(violated).contains(latticeMD); verify(lattice).findViolated(similaritySet); }