Checking listFiles() method on Java File