public boolean messageOffsetOnly() {
        return segmentBaseOffset == UNIFIED_LOG_UNKNOWN_OFFSET && relativePositionInSegment == UNKNOWN_FILE_POSITION;
    }
@Test
    void testMessageOffsetOnly() {
        LogOffsetMetadata metadata1 = new LogOffsetMetadata(1L);
        LogOffsetMetadata metadata2 = new LogOffsetMetadata(1L, 0L, 1);
        assertTrue(UNKNOWN_OFFSET_METADATA.messageOffsetOnly());
        assertFalse(metadata2.messageOffsetOnly());
        assertTrue(metadata1.messageOffsetOnly());
    }