Changed segment param from String to Object.
Created RequestMock at tests.
Books REST test-case.