SchemaFactoryImpl extends SchemaFactory2 { public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (PROPERTY_DATATYPE_LIBRARY_FACTORY.equals(name)) return getDatatypeLibraryFactory(); return super.getProperty(name); } protected  SchemaFactoryImpl(); Schema2 newSchema(SAXSource source); void setProperty(String name, Object object); Object getProperty(String name); static final public String PROPERTY_DATATYPE_LIBRARY_FACTORY; }
@Test(expectedExceptions = { SAXNotRecognizedException.class }) public void testUnrecognizedGetProperty() throws SAXNotRecognizedException, SAXNotSupportedException { SchemaFactory f = factory(); f.getProperty("http: throw new AssertionError(); }