Basic mocking support. Closes #9