Stubbing out Device object.