def METHOD_NAME(self):
    """Test json serialization."""
    as_json = splits.from_raw(self.raw).to_json()
    assert isinstance(as_json, dict)
    assert as_json['changeNumber'] == 123
    assert as_json['trafficTypeName'] == 'user'
    assert as_json['name'] == 'some_name'
    assert as_json['trafficAllocation'] == 100
    assert as_json['trafficAllocationSeed'] == 123456
    assert as_json['seed'] == 321654
    assert as_json['status'] == 'ACTIVE'
    assert as_json['killed'] is False
    assert as_json['defaultTreatment'] == 'off'
    assert as_json['algo'] == 2
    assert len(as_json['conditions']) == 2