ClassForFilterTesting innerdf =
new ClassForFilterTesting("third", "fourth");
df.setOtherObjectOne(innerdf);
resp.setEntity(df);
interceptor.postProcess(resp);
DynamicFilterData filterData =
ResteasyProviderFactory.getContextData(DynamicFilterData.class);
assertFalse(filterData.isAttributeExcluded("attributeOne", df));
assertTrue(filterData.isAttributeExcluded("attributeTwo", df));
assertFalse(filterData.isAttributeExcluded("otherObjectOne", df));
assertFalse(filterData.isAttributeExcluded("otherObjectTwo", df));
assertTrue(filterData.isAttributeExcluded("attributeOne", innerdf));
assertFalse(filterData.isAttributeExcluded("attributeTwo", innerdf));
}