if (persistenceExtensionFeatureResolver.shouldVerifyDataAfterTest())
{
final MetadataExtractor metadataExtractor = metadataExtractorInstance.get();
final ExpectedDataSetProvider dataSetProvider = new ExpectedDataSetProvider(metadataExtractor, configurationInstance.get());
final Method testMethod = afterPersistenceTest.getTestMethod();
final ShouldMatchDataSet dataSetsToVerify = metadataExtractor.shouldMatchDataSet()
.fetchFrom(testMethod);
final CustomColumnFilter customColumnFilter = metadataExtractor.using(CustomColumnFilter.class).fetchFrom(testMethod);
final CompareDBUnitData compareDBUnitDataEvent = new CompareDBUnitData(dataSetProvider.getDescriptorsDefinedFor(testMethod), dataSetsToVerify.orderBy(), dataSetsToVerify.excludeColumns());
if (customColumnFilter != null)
{
compareDBUnitDataEvent.add(customColumnFilter.value());
}
compareDataEvent.fire(compareDBUnitDataEvent);