stubbing out post method