static int dissectSocketAddress(final MutableDirectBuffer buffer, final int offset, final StringBuilder builder)
    {
        int encodedLength = 0;
        final int port = buffer.getInt(offset + encodedLength, LITTLE_ENDIAN);
        encodedLength += SIZE_OF_INT;

        encodedLength += dissectInetAddress(buffer, offset + encodedLength, builder);

        builder.append(':').append(port);

        return encodedLength;
    }
@Test
    void dissectSocketAddressIpv4()
    {
        final int offset = 16;
        buffer.putInt(offset, 12121, LITTLE_ENDIAN);
        buffer.putInt(offset + SIZE_OF_INT, 4, LITTLE_ENDIAN);
        buffer.putBytes(offset + SIZE_OF_INT * 2, new byte[]{ 127, 0, 0, 1 });

        final int decodedLength = CommonEventDissector.dissectSocketAddress(buffer, offset, builder);

        assertEquals(12, decodedLength);
        assertEquals("127.0.0.1:12121", builder.toString());
    }