Convenience functions and tests for working with the Net