Plastic criteria for mocking criteria queries