I think you have a well defined input/output here, it should be easy to write some tests for the method, right?