Stub tests and methods