Implement expectHeaders method