XsdParser { public String getAnnotation(String complexTypeName) { return evaluate(String.format(COMPLEX_TYPE_FORMAT, complexTypeName)); } XsdParser(String xsdName); String getAnnotation(String complexTypeName); String getAnnotation(String complexTypeName, String elementName);  }
@Test public void test_1() throws Exception { XsdParser xsdParser = new XsdParser("xsd1.xsd"); assertEquals("The object", xsdParser.getAnnotation("object")); assertEquals("The scalar 2", xsdParser.getAnnotation("object", "scalar2")); }
@Test public void test_4() throws Exception { XsdParser xsdParser = new XsdParser("xsd1.xsd"); assertEquals(null, xsdParser.getAnnotation("does_not_exist")); assertEquals(null, xsdParser.getAnnotation("object", "does_not_exist")); assertEquals(null, xsdParser.getAnnotation("does_not_exist", "does_not_exist")); }