Refactored RpslObjectMapper, added tests.