Can you just throw an OutOfMemoryError explicitly in the test code?