@SuppressWarnings("unchecked")
@Test
public void attributeToHashSet() throws IllegalArgumentException, SecurityException, InstantiationException,
		IllegalAccessException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException {

	nu.xom.Element eAttr = new nu.xom.Element("attribute", SpecificationWriter.NS);
	eAttr.addAttribute(new nu.xom.Attribute("name", "test"));
	String s1 = "10";
	String s2 = "101";
	Set<String> strings = new HashSet<String>();
	strings.add(s1);
	strings.add(s2);
	nu.xom.Element eAttr1 = new nu.xom.Element("attribute", SpecificationWriter.NS);
	eAttr1.addAttribute(new nu.xom.Attribute("name", "test1"));
	eAttr1.addAttribute(new nu.xom.Attribute("type", getType(String.class)));
	eAttr1.appendChild(s1);
	nu.xom.Element eAttr2 = new nu.xom.Element("attribute", SpecificationWriter.NS);
	eAttr2.addAttribute(new nu.xom.Attribute("name", "test2"));
	eAttr2.addAttribute(new nu.xom.Attribute("type", getType(String.class)));
	eAttr2.appendChild(s2);
	eAttr.addAttribute(new nu.xom.Attribute("type", getType(HashSet.class)));
	eAttr.appendChild(eAttr1);
	eAttr.appendChild(eAttr2);
	System.out.println(eAttr.toXML());
	SpecificationReader reader = new SpecificationReader();
	Set<String> strings2 = (Set<String>) reader.toAttribute(eAttr);
	Assert.assertEquals(strings, strings2);
}