ConstraintServices { void extractViolationInfoFromNodes(Iterator<Path.Node> nodeIterator, ConstraintViolation cv) { while (nodeIterator.hasNext()) { extractViolationInfoFromNode(nodeIterator.next(), cv); } }  ConstraintViolation[] extractViolations(ConstraintViolationException cve);  }
@Test public void testExtractViolationInfoFromNodes() { System.out.println("extractViolationInfoFromNodes"); List<Path.Node> list = Collections.EMPTY_LIST; Iterator<Path.Node> nodeIterator = list.iterator(); ConstraintViolation cv = new ConstraintViolation(); instance.extractViolationInfoFromNodes(nodeIterator, cv); verify(instance, never()).extractViolationInfoFromNode(any(Path.Node.class), any(ConstraintViolation.class)); }