Perform disk I/O test in Java.