Stub replaces a real object and feeds the desired indirect inputs into the system under test.