fix bug in example mock

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>