We should suppress the deprecation warning output in these examples and write one that tests that the warning is emitted.