ResourceIdentifer can replace resource

Complete TODO
Add rspec test