assertEquals(3, _metadataValidationRepo.count());
_metadataValidationRepo.saveAndFlush(MetadataValidationRepositoryTest.newValidation(_inc, _mdRepo));
assertEquals(6, _operationRepo.count());
Operation operation = _operationRepo.saveAndFlush(OperationRepositoryTest.newOperation(_inc));
assertEquals(72, _opAllowedRepo.count());
_opAllowedRepo.saveAndFlush(new OperationAllowed(new OperationAllowedId(metadata.getId(), group.getId(), operation.getId())));
assertEquals(2, _ratingRepo.count());
final MetadataRatingByIp ratingByIp = MetadataRatingByIpRepositoryTest.newMetadataRatingByIp(_inc);
ratingByIp.getId().setMetadataId(metadata.getId());
_ratingRepo.saveAndFlush(ratingByIp);
assertEquals(0, _relationRepo.count());