/**
  * Test read.
  *
  * @throws Exception the exception
  */
 public void testRead() throws Exception {
   RandomAccessFileInputStream ascii =
       new RandomAccessFileInputStream(
           new File(
               "src"
                   + separator
                   + "test"
                   + separator
                   + "resources"
                   + separator
                   + "io"
                   + separator
                   + "asciiTest.hex"));
   assertEquals(65, ascii.read());
   ascii.close();
 }
 /**
  * Test read 1.
  *
  * @throws Exception the exception
  */
 public void testRead1() throws Exception {
   RandomAccessFileInputStream ascii =
       new RandomAccessFileInputStream(
           new File(
               "src"
                   + separator
                   + "test"
                   + separator
                   + "resources"
                   + separator
                   + "io"
                   + separator
                   + "asciiTest.hex"));
   byte[] data = {(byte) 2, (byte) 1, (byte) 0};
   assertEquals(3, ascii.read(data));
   ascii.close();
 }