Testing custom protocols with Gatling

Good morning,

what is the suggested way to test a custom protocol with Gatling? Should one use a similar approach as

https://github.com/gatling/gatling/blob/master/gatling-http/src/test/scala/io/gatling/http/HttpSpec.scala

It doesn’t seem trivial, any help welcome