assertTrue("Descriptor " + phoneNumberChildDescriptors[2] + " should be simple",
phoneNumberChildDescriptors[2].isSimple());
}
public void testSimpleForRSS() throws Exception {
XMLIntrospector introspector = new XMLIntrospector();
introspector.getConfiguration().setWrapCollectionsInElement(true);
introspector.getConfiguration().setAttributesForPrimitives(false);
XMLBeanInfo out = introspector.introspect(Channel.class);
ElementDescriptor channelDescriptor = out.getElementDescriptor();
ElementDescriptor[] childNodesOfRSS = channelDescriptor.getElementDescriptors();
assertEquals("RSS has only one child, channel", 1, childNodesOfRSS.length);
ElementDescriptor[] childNodesOfChannel = childNodesOfRSS[0].getElementDescriptors();