apicheck

apicheck lets you test an object to have a fixed set of functions.