ValueStoreMetaSerde implements Serde<ValueStoreMeta> { public int extractTypeId(final ByteBuffer byteBuffer) { return byteBuffer.get(TYPE_ID_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 testExtractTypeId() { ValueStoreMeta valueStoreMeta = new ValueStoreMeta(StringValue.TYPE_ID, 123); doExtractionTest(valueStoreMeta, getSerde()::extractTypeId, ValueStoreMeta::getTypeId); }