These tests make absolutely no sense to me, I can't work out what they're trying to test.
testPageWithNIO seems to page a single message, then depages it, then repeats 100 times, then validates the file size is less than MAX_SIZE
I am completely baffled by this - can you explain what the purpose is?
I have commented these tests out for now.