SimpleXsdSchema implements XsdSchema, InitializingBean { public String toString() { StringBuilder builder = new StringBuilder("SimpleXsdSchema"); builder.append('{'); builder.append(getTargetNamespace()); builder.append('}'); return builder.toString(); } SimpleXsdSchema();  SimpleXsdSchema(Resource xsdResource); void setXsd(Resource xsdResource); @Override String getTargetNamespace(); @Override Source getSource(); @Override XmlValidator createValidator(); @Override void afterPropertiesSet(); String toString();  }
@Test(expected = IllegalArgumentException.class) public void testBareXsdSchema() { SimpleXsdSchema schema = new SimpleXsdSchema(); schema.toString(); }