@Test
public void shouldSerializeGenericClass() {

	String expectedResult = "myCallback({\"genericWrapper\": {\"entityList\": [{\"street\": \"vergueiro street\"},{\"street\": \"vergueiro street\"}],\"total\": 2}})";
	Collection<Address> entityList = new ArrayList<Address>();
	entityList.add(new Address("vergueiro street"));
	entityList.add(new Address("vergueiro street"));
	GenericWrapper<Address> wrapper = new GenericWrapper<Address>(entityList, entityList.size());
serialization.withCallback("myCallback").from(wrapper).include("entityList").serialize();
assertThat(result(), is(equalTo(expectedResult)));
}