XsdNamespaceContext implements NamespaceContext { @Override public Iterator<?> getPrefixes(String namespaceURI) { throw new UnsupportedOperationException("Unknown namespaceURI \"" + namespaceURI + "\""); }  @Override String getNamespaceURI(String prefix); @Override String getPrefix(String namespaceURI); @Override Iterator<?> getPrefixes(String namespaceURI); static final String NS_PREFIX_XSD; static final String NS_URI_XSD; }
@Test public void test_4() { XsdNamespaceContext xsdNamespaceContext = new XsdNamespaceContext(); try { xsdNamespaceContext.getPrefixes(XsdNamespaceContext.NS_URI_XSD); fail(); } catch (Exception e) { assertEquals(UnsupportedOperationException.class, e.getClass()); assertEquals("Unknown namespaceURI \"" + XsdNamespaceContext.NS_URI_XSD + "\"", e.getMessage()); } }