static void dissectCatalogResize(
        final MutableDirectBuffer buffer, final int offset, final StringBuilder builder)
    {
        int absoluteOffset = offset;
        absoluteOffset += dissectLogHeader(CONTEXT, CATALOG_RESIZE, buffer, absoluteOffset, builder);

        final int maxEntries = buffer.getInt(absoluteOffset, LITTLE_ENDIAN);
        absoluteOffset += SIZE_OF_INT;
        final long catalogLength = buffer.getLong(absoluteOffset, LITTLE_ENDIAN);
        absoluteOffset += SIZE_OF_LONG;

        final int newMaxEntries = buffer.getInt(absoluteOffset, LITTLE_ENDIAN);
        absoluteOffset += SIZE_OF_INT;
        final long newCatalogLength = buffer.getLong(absoluteOffset, LITTLE_ENDIAN);

        builder.append(": ").append(maxEntries);
        builder.append(" entries (").append(catalogLength).append(" bytes)");
        builder.append(" => ").append(newMaxEntries);
        builder.append(" entries (").append(newCatalogLength).append(" bytes)");
    }
@Test
    void catalogResize()
    {
        internalEncodeLogHeader(buffer, 0, 6, 100, () -> 5_600_000_000L);
        buffer.putInt(LOG_HEADER_LENGTH, 24, LITTLE_ENDIAN);
        buffer.putLong(LOG_HEADER_LENGTH + SIZE_OF_INT, 100, LITTLE_ENDIAN);
        buffer.putInt(LOG_HEADER_LENGTH + SIZE_OF_INT + SIZE_OF_LONG, 777, LITTLE_ENDIAN);
        buffer.putLong(LOG_HEADER_LENGTH + SIZE_OF_INT * 2 + SIZE_OF_LONG, 10_000_000_000L, LITTLE_ENDIAN);

        dissectCatalogResize(buffer, 0, builder);

        assertEquals("[5.600000000] " + CONTEXT + ": " + CATALOG_RESIZE.name() + " [6/100]:" +
            " 24 entries (100 bytes) => 777 entries (10000000000 bytes)",
            builder.toString());
    }