We should have a unit test case to cover this.