ValueStoreMetaSerde implements Serde<ValueStoreMeta> { public int extractReferenceCount(final ByteBuffer byteBuffer) { return (int) REF_COUNT_UNSIGNED_BYTES.get(byteBuffer, REFERENCE_COUNT_OFFSET); }  @Override int getBufferCapacity(); @Override ValueStoreMeta deserialize(ByteBuffer byteBuffer); @Override void serialize(ByteBuffer byteBuffer, ValueStoreMeta valueStoreMeta); int extractTypeId(final ByteBuffer byteBuffer); int extractReferenceCount(final ByteBuffer byteBuffer); void cloneAndDecrementRefCount(final ByteBuffer sourceBuffer, final ByteBuffer destBuffer); void cloneAndIncrementRefCount(final ByteBuffer sourceBuffer, final ByteBuffer destBuffer);  }
@Test void testExtractReferenceCount() { ValueStoreMeta valueStoreMeta = new ValueStoreMeta(StringValue.TYPE_ID, 123); doExtractionTest(valueStoreMeta, getSerde()::extractReferenceCount, ValueStoreMeta::getReferenceCount); }