Simulating behavior with stubs