Testing use of Java nio.