Mock both get and post requests