Notes on API stubbing