* @author David Ward <<a href="mailto:dward@jboss.org">dward@jboss.org</a>> © 2013 Red Hat Inc.
*/
public final class ProtostuffComplexSerializationTest {
private <T> T serDeser(T object, Class<T> clazz) throws Exception {
Serializer ser = SerializerFactory.create(FormatType.JSON, null, true);
//ser.setPrettyPrint(true);
byte[] bytes = ser.serialize(object, clazz);
//System.out.println(new String(bytes));
return ser.deserialize(bytes, clazz);
}