A stub helper for writing effective golang tests.