Delegate functionality to subclasses, assert when subclasses didn't do job the are supposed to do. Thanks Sybren for pointing to a proper solution.
The idea is to avoid re-implementing this for an upcoming FFmpeg tests.