TestDeserializer tdeSer = new TestDeserializer();
CustomModuleWrapper<List> cmw = new CustomModuleWrapper(tser, tdeSer);
sc.addAdapter("Collection Adapter", ArrayList.class, cmw);
List<Rectangle> rectList = new ArrayList<Rectangle>();
for (int i = 0; i < 10; i++) {
Rectangle filteredRect = new Rectangle(i, i, "rect" + i);
rectList.add(filteredRect);
}
String adapterSer = sc.ser(rectList);
ArrayList<Rectangle> resultList0 = sc
.deSer(adapterSer, ArrayList.class);