Stubbing in discovery classes.