test behavior using a Minitest::Mock object