/**
  * Test method for {@link su.comp.bk.arch.memory.RandomAccessMemory#RandomAccessMemory(int,
  * short[])}.
  */
 @Test
 public void testRandomAccessMemoryIntShortArray() {
   short[] ramData = new short[] {0, 1, 2, 3};
   RandomAccessMemory ram = new RandomAccessMemory("TestRam", 01000, ramData);
   assertEquals(01000, ram.getStartAddress());
   assertEquals(4, ram.getSize());
   assertArrayEquals(ramData, ram.getData());
 }
 /**
  * Test method for {@link su.comp.bk.arch.memory.RandomAccessMemory#RandomAccessMemory(int,
  * byte[])}.
  */
 @Test
 public void testRandomAccessMemoryIntByteArray() {
   byte[] ramData = new byte[] {0, 1, 2, 3};
   RandomAccessMemory ram = new RandomAccessMemory("TestRam", 01000, ramData);
   assertEquals(01000, ram.getStartAddress());
   assertEquals(2, ram.getSize());
   assertArrayEquals(new short[] {1 << 8, (3 << 8) + 2}, ram.getData());
 }
 /**
  * Test method for {@link su.comp.bk.arch.memory.RandomAccessMemory#RandomAccessMemory(int, int)}.
  */
 @Test
 public void testRandomAccessMemoryIntInt() {
   RandomAccessMemory ram = new RandomAccessMemory("TestRam", 01000, 4);
   assertEquals(01000, ram.getStartAddress());
   assertEquals(4, ram.getSize());
 }