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 dissectSocketAddressInvalidLength()
    {
        final int offset = 16;
        buffer.putInt(offset, 555, LITTLE_ENDIAN);
        buffer.putInt(offset + SIZE_OF_INT, 7, LITTLE_ENDIAN);

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

        assertEquals(15, decodedLength);
        assertEquals("unknown-address:555", builder.toString());
    }