You could `assertFalse(result.isClosed())` before closing it