### Question:
SvgValidator { private String noDisplayNone(final SVGOMSVGElement icon) { return browseDom(icon, node -> { final Node display = node.getAttributes() == null ? null : node.getAttributes().getNamedItem("display"); if (display != null && display.getNodeValue() != null) { return display.getNodeValue().replaceAll(" +", "").equalsIgnoreCase("none") ? "'display:none' is forbidden in SVG icons" : null; } return null; }); }  Stream<String> validate(final Path path);  }### Answer:
@Test void noDisplayNone() { final String error = doValidate("displaynone", 1).iterator().next(); assertTrue(error.startsWith("[displaynone.svg] 'display:none' is forbidden in SVG icons"), error); }