use of org.apache.kafka.server.log.remote.metadata.storage.serialization.RemoteLogSegmentMetadataTransform in project kafka by apache.
the class RemoteLogMetadataTransformTest method testRemoteLogSegmentMetadataTransform.
@Test
public void testRemoteLogSegmentMetadataTransform() {
RemoteLogSegmentMetadataTransform metadataTransform = new RemoteLogSegmentMetadataTransform();
RemoteLogSegmentMetadata metadata = createRemoteLogSegmentMetadata();
ApiMessageAndVersion apiMessageAndVersion = metadataTransform.toApiMessageAndVersion(metadata);
RemoteLogSegmentMetadata remoteLogSegmentMetadataFromRecord = metadataTransform.fromApiMessageAndVersion(apiMessageAndVersion);
Assertions.assertEquals(metadata, remoteLogSegmentMetadataFromRecord);
}
Aggregations