Software Testing / Learning brief

Tom meets the stunt double

What this means in plain language

Tom wants to test the reminder code, but the real mail service is slow and sends real emails. A stunt-double story shows how a stub, a mock, a driver and a harness help, and where stand-ins can mislead.

Understand the full idea, step by step

A film uses a stunt double for a risky scene. From far away the double looks right, and it does the jump. But it is not the real actor.

Daily List needed a stunt double too. Tom wanted to test the reminder code, and the real mail service was in the way.

Evidence & review

REVIEWED 2026-11-08

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Mock object, test driver and test harness as taught in this academy. The people and the Daily List app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The stunt double is a teaching picture. 8 November 2026: selected primary Fowler category/mailing-test passages, WireMock stubbing/state examples and Pact consumer/provider verification sections opened. The lesson uses chosen practitioner vocabulary; libraries may combine roles. Other historical excerpt limits remain. No actual mail-provider or complete tool/runtime certification.

Sources for this brief — 10 sources
  1. Market practice

    Mocks Aren't Stubs (Martin Fowler) ↗ — Martin Fowler · Separates checking state from checking behaviour, and uses the words dummy, fake, stub, spy and mock for kinds of test double (search excerpt, page not opened)

    Separates state checks from behaviour checks and uses the test double words dummy, fake, stub, spy and mock. Practitioner guidance, not a standard. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    8 November 2026: bounded Difference Between Mocks and Stubs section, mailing examples, state/behavior explanation and revision history opened. Selected practitioner vocabulary: configured stub responses, recording spies and programmed mock expectations. Article revision 2 January 2007, first publication 8 July 2004. Not a universal library taxonomy.

  2. Market practice

    Service Virtualization (WireMock glossary) ↗ — WireMock · Vendor page: a mock is a lightweight canned response, while a virtual service keeps state and models flows (search excerpt, page not opened)

    Vendor page: says a mock is a lightweight canned response while a virtual service models state and flows. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Test driver (software) (Wikipedia) ↗ — Wikipedia · A driver calls the system under test, and a stub answers calls made by the part under test (search excerpt, page not opened)

    Says drivers call the system under test and stubs answer calls from it. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Test harness (Wikipedia) ↗ — Wikipedia · A test harness is stubs and drivers set up to test a component (search excerpt, page not opened)

    Describes a test harness as stubs and drivers set up to test a component. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Section 2.2, test levels: integration testing focuses on the interactions between components or systems (confirmed against the syllabus, read in full text from a mirror copy of the publisher PDF, v4.0.1, 15 September 2024)

    The examinable statement of what a foundation-level tester is expected to know: six chapters, 64 learning objectives, each tagged K1 Remember, K2 Understand or K3 Apply, plus the test-design techniques the qualification names and groups as black-box, white-box and experience-based.

    Used here for the test-craft questions a Payment Quality Assurance Analyst and a Production Support Analyst are asked. It is cited for what the syllabus says a tester must be able to do, never as a rule about how payments work. · Checked 2026-11-07

    v4.0.1 is dated 15 September 2024 and is a list of corrections to v4.0 (21 April 2023) that reworded six learning objectives — not a cosmetic reissue. 78 pages.

    Two traps this entry exists to stop. v4.0.2 is the German edition (1 March 2025, 94 pages), so sorting by version number reaches the wrong document. And the widely-repeated per-chapter question allocation "8 / 5 / 4 / 11 / 9 / 3" is wrong: it is 8 / 6 / 4 / 11 / 9 / 2, derived from three official sample-exam answer keys and confirmed against the Exam Structure Tables.

    The single most consequential detail for a question bank: white-box coverage — statement and branch — is K2 "Explain", not K3 "Apply" (FL-4.3.1, FL-4.3.2, FL-4.3.3), and MC/DC, path and condition coverage are declared out of scope in §4.3. A question asking a candidate to compute branch coverage is testing something this syllabus does not.

    Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.

    Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.

    Read from two independent PDF-to-markdown conversions mirrored on raw.githubusercontent.com. They are treated as faithful because they were produced by unrelated parties with different tooling, agree on the full 64-item objective set including wording, and reproduce the same internal inconsistency present in the source PDF. Chapter 1 reads "testware that supports" where Appendix B reads "that support". A conversion artefact does not replicate across two toolchains.

    The licence permits attributed non-commercial extracts and use as the basis for articles. Whether a site that sells a pass may rely on that is an owner's decision, not this entry's.

    7 November 2026 review: actual publisher PDF 4.0.1, 15 September 2024, 78 pages, front matter/copyright and relevant numbered operative sections 0.5–0.10 and chapters 1–6 compared with CTFLpractice lessons. Earlier mirror/search descriptions are historical access records. TheK2 white-box objectives require explanation; the source does not justify a categorical ban on small numeric illustrations that support explanation. Later Exam Rules 1.2§4.1.4 usesK2 for keyword definitions, while syllabus§0.5 usesK1; keep dated scopes distinct. No copied questions or figure assets.

  6. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  7. Market practice

    Mocks Aren't Stubs (Martin Fowler) ↗ — Martin Fowler · 8 November 2026: bounded Difference Between Mocks and Stubs section, mailing examples, state/behavior explanation and revision history opened. Selected practitioner vocabulary: configured stub responses, recording spies and programmed mock expectations. Article revision 2 January 2007, first publication 8 July 2004. Not a universal library taxonomy.

    Separates state checks from behaviour checks and uses the test double words dummy, fake, stub, spy and mock. Practitioner guidance, not a standard. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    8 November 2026: bounded Difference Between Mocks and Stubs section, mailing examples, state/behavior explanation and revision history opened. Selected practitioner vocabulary: configured stub responses, recording spies and programmed mock expectations. Article revision 2 January 2007, first publication 8 July 2004. Not a universal library taxonomy.

  8. Market practice

    Stubbing (WireMock documentation) ↗ — WireMock · 8 November 2026: actual live WireMock Java Basic Stubbing and complete Stub Priority section/examples opened. Request mappings select configured responses; no installed-version or every-feature claim.

    The WireMock stubbing pages say a mapping has a request part and a response part. The request part holds a method and a web address. The response part holds a status and a body. A mapping can be a file in the mappings folder, or it can be sent to the admin address. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. Supplement6November2026: actual current and archived2.x stubbing pages opened; priority then most-recent matching stub; reset paths also documented in2.x. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    8 November 2026: actual live WireMock Java Basic Stubbing and complete Stub Priority section/examples opened. Request mappings select configured responses; no installed-version or every-feature claim.

    WireMock topic review, 8 November 2026: Basic stubbing, stub priority, unmapped replies, reset and reset-to-default: current official page opened 8 November 2026. Local examples separately checked with WireMock Java 3.13.1.

    Version-specific correction: the general Reset paragraph says all mappings are removed, but WireMock Java 3.13.1 resetAll reloads defaults. See v945-wiremock-3131-reset-source and the local runtime tests. Do not infer an empty mapping list when files are present.

  9. Market practice

    Stateful behaviour (WireMock documentation) ↗ — WireMock · 8 November 2026: actual WireMock Java Scenarios section, Java/JSON example and reset operations opened. Models selected state transitions; not reproduction of an entire real service or actual WireMock execution.

    The WireMock pages on state say a scenario is a state machine that begins in the Started state. A stub names the state it needs and may set a new state. The scenario list is available at the admin address. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    8 November 2026: actual WireMock Java Scenarios section, Java/JSON example and reset operations opened. Models selected state transitions; not reproduction of an entire real service or actual WireMock execution.

    WireMock topic review, 8 November 2026: Scenarios, Started state and POST /__admin/scenarios/reset. Current official page opened 8 November 2026.

  10. Market practice

    How Pact works — consumer tests and provider verification ↗ — Pact Foundation · 8 November 2026: actual HTTP interaction, Consumer Testing and Provider Verification sections through Putting It All Together opened, page footer 23 December 2024. Consumer checks and selected provider response verification are distinct; a written contract alone is not verification. No whole transport or deployed-behavior guarantee.

    Actual consumer client against mock provider, pact generation, independent provider states and provider verification opened. Product guidance, not a universal testing standard. Original figure source bytes matched repositorye2072af34960cb19d6c132d370c2fd580ec0e55c under the documentation MIT notice. · Checked 2026-11-08

    Opened relevant primary passages on6November2026 via normal web search and document view. Actual consumer client against mock provider, pact generation, independent provider states and provider verification opened. Product guidance, not a universal testing standard. Original figure source bytes matched repositorye2072af34960cb19d6c132d370c2fd580ec0e55c under the documentation MIT notice.

    8 November 2026: actual HTTP interaction, Consumer Testing and Provider Verification sections through Putting It All Together opened, page footer 23 December 2024. Consumer checks and selected provider response verification are distinct; a written contract alone is not verification. No whole transport or deployed-behavior guarantee.

Learn this properly

START HEREStand-ins for other systems: stubs and mocksA stand-in lets you test one part without the real parts around it. Learn the stub, the mock, the driver and the harness.Opens at L0 Explain simply · about 14 min

Related briefs

Tom meets the village team

Tom practises questions on people and teams in agile testing. A village football team helps him mix generalists and specialists, engage business people and use tissue testers well.

READ BRIEF