@Test
public void testWriteShort() throws IOException {

    writer.writeShort(0);
    writer.writeShort(0x1122);
    writer.writeShort(-0x1122);
    writer.writeShort(0x7FFF);
    writer.writeShort(-0x8000);
    expectData(0x00, 0x00,
               0x22, 0x11,
               0xDE, 0xEE,
               0xFF, 0x7F,
               0x00, 0x80);
}