I think that this is worthy of a unit test.