/**
* Test canHandleType(Element) with a StuctureComposition.
*/
public void testCanHandleTypeElementStructure() {
JDOMFactory factory = new DefaultJDOMFactory();
Element type = factory.element(DeviceRepositorySchemaConstants.
POLICY_DEFINITION_TYPE_ELEMENT_NAME);
Element range = factory.element("range");
type.addContent(range);
assertFalse("Should not be able handle type with no name attribute",
PolicyTypeComposition.STRUCTURE.canHandleType(type));
range.detach();