final Counter counter = Counter.find( UniqueValueValidationService.class );
final ByteArrayResourceStore byteArrayResourceStore = new ByteArrayResourceStore( generateTestData( entries ) );
final XmlResourceStore xmlResourceStore = new XmlResourceStore( byteArrayResourceStore );
counter.reset();
final TestElement element = TestElement.TYPE.instantiate( new RootXmlResource( xmlResourceStore ) );
element.validation();
assertEquals( entries, counter.read() );