### Question:
FullLattice { public Collection<LatticeMD> getLevel(int level) { Collection<LatticeMD> candidates = lattice.getLevel(level); return StreamUtils.seq(candidates) .filter(this::isSupported) .toList(); }  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 testGetLevel() { FullLattice fullLattice = new FullLattice(lattice, notSupported); LatticeMD latticeMD = Mockito.mock(LatticeMD.class); when(lattice.getLevel(1)).thenReturn(Collections.singletonList(latticeMD)); Collection<LatticeMD> level = fullLattice.getLevel(1); assertThat(level).hasSize(1); assertThat(level).contains(latticeMD); verify(lattice).getLevel(1); }