private void testReadBasic() {
        // Try to read from a non-existent file.
        try {
            clientStub.read(absentFile, 0, 0);
            Assert.fail("read method returned for non-existent file");
        } catch(FileNotFoundException e) { 
            
        } catch(Throwable t) {
            t.printStackTrace();
            Assert.fail("read method threw unexpected exception " +
                                 "when accessing non-existent file");
        }

        // Try to read from a directory.
        try {
            clientStub.read(directoryFile, 0, 0);
            Assert.fail("read method returned for directory");
        } catch(FileNotFoundException e) { 
            
        } catch(Throwable t) {
            t.printStackTrace();
            Assert.fail("read method threw unexpected exception " +
                                 "when accessing directory");
        }

        // Try to read from an empty file.
        try {
            byte[]  result = clientStub.read(emptyFile, 0, 0);

            if(result == null) {
                Assert.fail("read method returned null when reading " +
                                     "from empty file");
            }

            if(result.length != 0) {
                Assert.fail("read method returned incorrect number " +
                                     "of bytes when reading empty file");
            }
        } catch(Throwable t) {
            t.printStackTrace();
            Assert.fail("read method threw unexpected exception " +
                                 "when reading from empty file");
        }

        // Call read with null as the file argument.
        try {
            clientStub.read(null, 0, 0);
            Assert.fail("read method returned when given null as " +
                                 "argument");
        } catch(NullPointerException e) { 
            
        } catch(Throwable t) {
            t.printStackTrace();
            Assert.fail("read method threw unexpected exception " +
                                 "when given null as argument");
        }
    }