AbstractXMLStreamScope implements NamespaceContext { void setStartTagClosed(boolean startTagClosed) throws XMLStreamException { if (startTagClosed) { verify(); } this.startTagClosed = startTagClosed; } AbstractXMLStreamScope(String defaultNamespace);  AbstractXMLStreamScope(NamespaceContext parent);  AbstractXMLStreamScope(AbstractXMLStreamScope parent, String prefix, String localName, String namespaceURI); String getPrefix(); String getLocalName(); String getNamespaceURI(); boolean isRoot(); AbstractXMLStreamScope getParent(); AbstractXMLStreamScope getLastChild(); boolean isStartTagClosed(); @Override String getPrefix(String namespaceURI); void setPrefix(String prefix, String namespaceURI); @Override Iterator<String> getPrefixes(final String namespaceURI); @Override String getNamespaceURI(String prefix);  }
@Test(expected = XMLStreamException.class) public void testElementScopeUnboundPrefix() throws XMLStreamException { TestScope scope = new TestScope(new TestScope("http: scope.setStartTagClosed(true); }
@Test(expected = XMLStreamException.class) public void testElementScopeNamespaceNotBound() throws XMLStreamException { TestScope scope = new TestScope(new TestScope("http: scope.setStartTagClosed(true); }