Heap dump on OutOfMemoryError in REST tests