public void testCanHandleOneOrMore() throws Exception {
  Dtd dtd=new Dtd("http://java.sun.com/dtd/web-app_2_3.dtd");
  List<DescriptorTag> elementOrder=dtd.getElementOrder("security-constraint");
  assertEquals(4,elementOrder.size());
  DescriptorTag tag=elementOrder.get(1);
  assertEquals("web-resource-collection",tag.getTagName());
  assertTrue(tag.isMultipleAllowed());
}

public void testCanHandleOneOrMore ( ) throws Exception { Dtd dtd = new Dtd ( "http://java.sun.com/dtd/web-app_2_3.dtd" ) ; List < DescriptorTag > elementOrder = dtd . getElementOrder ( "security-constraint" ) ; assertEquals ( 4 , elementOrder . size ( ) ) ; DescriptorTag tag = elementOrder . get ( 1 ) ; assertEquals ( "web-resource-collection" , tag . getTagName ( ) ) ; assertTrue ( tag . isMultipleAllowed ( ) ) ; }
test that we can handle " one or more " type .
