String xml = "<OpenSearchDescription>" +
"<Tags>restfulie rest http</Tags>" +
"</OpenSearchDescription>";
//When
SearchDescription desc = (SearchDescription) stream.fromXML(new StringReader(xml));
//Then
assertThat(desc.getTags().size(), is(equalTo(3)));
assertThat(desc.getTags().get(0), is(equalTo("restfulie")));
assertThat(desc.getTags().get(1), is(equalTo("rest")));
assertThat(desc.getTags().get(2), is(equalTo("http")));
}