given my comment above, I would not have a spec for this but rather just specs for #data, #data_type, #to_hash. All other methods should be private.