### Question:
AbstractStatefulHash implements StatefulHash { @Override public short getShort() { return (short) getInt(); }  @Override boolean supportsUnsafe(); @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();  }### Answer:
@Test public void testGetShort() { when(hash.getInt()).thenReturn(0x12345678); assertEquals(0x5678, hash.getShort()); }