CssPseudoElementNode extends CssContextNode implements IElementNode, ICustomElementNode { @Override public void addAdditionalHtmlStyles(Map<String, String> styles) { throw new UnsupportedOperationException(); } CssPseudoElementNode(INode parentNode, String pseudoElementName); String getPseudoElementName(); @Override String name(); @Override IAttributes getAttributes(); @Override String getAttribute(String key); @Override List<Map<String, String>> getAdditionalHtmlStyles(); @Override void addAdditionalHtmlStyles(Map<String, String> styles); @Override String getLang();  }
@Test public void addAdditionalHtmlStylesTest() { junitExpectedException.expect(UnsupportedOperationException.class); CssPseudoElementNode pseudoElementNode = new CssPseudoElementNode(null, "after"); Map<String, String> styles = new HashMap<>(); styles.put("font-size", "12px"); styles.put("color", "red"); pseudoElementNode.addAdditionalHtmlStyles(styles); Assert.fail(); }