It would be good to have a unit test for this method.