@Test(expected=PropertyNoAttributesExpectedException.class)
public void configureNoAttributesExpectedInProperty() throws Exception {

    // build xml
    StringBuilder string0 = new StringBuilder(200)
            .append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n")
            .append("<configuration>\n")
            .append("   <port>80</port>\n")
            .append("   <host id=\"1\">www.google.com</host>\n")    // should cause exception
            .append("   <url>http://www.google.com/</url>\n")
            .append("</configuration>")
            .append("");
    // parse xml
    ByteArrayInputStream is = new ByteArrayInputStream(string0.toString().getBytes());
    XmlParser parser = new XmlParser();
    XmlParser.Node rootNode = parser.parse(is);
    // object we'll configure
    SimpleConfiguration config = new SimpleConfiguration();
    // configure it using default options
    XmlBean bean = new XmlBean();
    bean.configure(rootNode, config);
}