public void doUnpackTest(short expected,byte[] packed) throws IOException {
  ByteArrayInputStream bais=new ByteArrayInputStream(packed);
  short actual=ShortPacker.unpackShort((DataInput)new DataInputStream(bais));
  assertEquals("value",expected,actual);
  assertTrue("Expecting EOF",bais.read() == -1);
}

public void doUnpackTest ( short expected , byte [ ] packed ) throws IOException { ByteArrayInputStream bais = new ByteArrayInputStream ( packed ) ; short actual = ShortPacker . unpackShort ( ( DataInput ) new DataInputStream ( bais ) ) ; assertEquals ( "value" , expected , actual ) ; assertTrue ( "Expecting EOF" , bais . read ( ) == - 1 ) ; }
unpacks a short value .
