The mocking set an implicit assertion. The assertion is that `setContent` will be called and with the argument `hello world`. If you changed the `setContent` method this test would fail.