@Test
public void shouldSerializeGenericClass() {

	String expectedResult = "<genericWrapper>\n  <entityList class=\"list\">\n    <client>\n      <name>washington botelho</name>\n    </client>\n    <client>\n      <name>washington botelho</name>\n    </client>\n  </entityList>\n  <total>2</total>\n</genericWrapper>";
	Collection<Client> entityList = new ArrayList<Client>();
	entityList.add(new Client("washington botelho"));
	entityList.add(new Client("washington botelho"));
	GenericWrapper<Client> wrapper = new GenericWrapper<Client>(entityList, entityList.size());
serialization.from(wrapper).include("entityList").serialize();
assertThat(result(), is(equalTo(expectedResult)));
}