### Question:
Catalog implements Serializable { public void setMeta(long meta) { start = (short) (meta >>> 16 & 0xFFFF); end = (short) (meta & 0xFFFF); } Catalog(); void add(short position); void upItemNumber(int delta); void prepareToRead(); boolean skipToNextItem(ObjectInputStream ois); void write(ObjectOutputStream os); void read(ObjectInputStream is); @Override String toString(); void updateCatalogMetadata(byte[] contents); void setMeta(long meta); void setPosisionsFrom(Catalog catalog); @Override boolean equals(Object obj); @Override int hashCode(); short getStart(); static final String CATALOG_KEY; static final String CATALOG_META_KEY; }### Answer:
@Test public void testSetMeta() { Catalog cat = new Catalog(); cat.setMeta(0xABCD1234); assertEquals((short) 0xABCD, cat.start); assertEquals((short) 0x1234, cat.end); }