public static int appendArchiveIdLabel(
        final MutableDirectBuffer tempBuffer, final int offset, final long archiveId)
    {
        int suffixLength = 0;
        suffixLength += tempBuffer.putStringWithoutLengthAscii(offset, ARCHIVE_ID_LABEL_PREFIX);
        suffixLength += tempBuffer.putLongAscii(offset + suffixLength, archiveId);
        return suffixLength;
    }
@Test
    void appendArchiveIdLabel()
    {
        final int offset = 13;
        final long archiveId = -23462384L;
        final UnsafeBuffer buffer = new UnsafeBuffer(new byte[100]);

        final int length = ArchiveCounters.appendArchiveIdLabel(buffer, offset, archiveId);

        assertEquals(ArchiveCounters.lengthOfArchiveIdLabel(archiveId), length);
        final int prefixLength = ArchiveCounters.ARCHIVE_ID_LABEL_PREFIX.length();
        assertEquals(
            ArchiveCounters.ARCHIVE_ID_LABEL_PREFIX,
            buffer.getStringWithoutLengthAscii(offset, prefixLength));
        assertEquals(archiveId, buffer.parseLongAscii(offset + prefixLength, length - prefixLength));
    }