    @Test
    public void testWriteByte() {

        byte[] romData = new byte[] { 0, (byte) 0377 };
        ReadOnlyMemory rom = new ReadOnlyMemory("TestRom", 01000, romData);
        rom.write(true, 01000, 0377);
        assertEquals(0377 << 8, rom.read(false, 01000));
        rom.write(true, 01001, 0);
        assertEquals(0377 << 8, rom.read(false, 01000));
    }