what would make sense would be an end-to-end test with annotation or invalidator configuration. but that needs a symfony setup in the Tests infrastructure. doable, but quite some effort.