A record-then-assert test double library.