Did you write test cases for this method?