public Class<? extends Annotation> annotationType() {
return DirectReturnIncludeStrategy.class;
}
});
ResultObject result = new ResultObject("prop", 2, new ResultObject("nestedProp", 1));
ResultObject multipleItem1 = new ResultObject("multipleProp1", 3);
ResultObject multipleItem2 = new ResultObject("multipleProp2", 4);
result.addMultiple(multipleItem1);
result.addMultiple(multipleItem2);
Map<Object, List<String>> serializationMap = strategy.buildSerializationMap(result);
assertNotNull(serializationMap);