See examples in tests in the t/ directory.
