A way to mock adply