Bitmovin Interview Question

How to make code testable?