### Question:
DigestHash implements StatefulHash { @Override public short getShort() { getSavedDigest(); return (short) (savedDigest[0] | (savedDigest.length > 1 ? savedDigest[1] << 8 : 0)); } DigestHash(MessageDigest digest); @Override String algorithm(); @Override int length(); @Override boolean supportsUnsafe(); @Override StatefulHash createNew(); @Override boolean supportsIncremental(); @Override void reset(); @Override void update(byte[] input); @Override void update(byte[] input, int index, int length); @Override void update(ByteBuffer input); @Override void update(long address, long length); @Override byte[] getBytes(); @Override int getBytes(byte[] output, int index, int maxLength); @Override byte getByte(); @Override short getShort(); @Override int getInt(); @Override long getLong();  }### Answer:
@Test public void testGetShort() { hash.update(DATA); assertEquals((short) 0xb65e, hash.getShort()); }