To use in a test.