Testing ruby filter for logstash

How would you write a test to check if the code described in Indent any json file nested fields and make it flat (@Badger ) is working?

I am having a hard time using the inline testing framework described in Ruby filter plugin | Logstash Reference [7.13] | Elastic (Where can I find more examples of this?)