example of when to use a stub