I guess I could just do a serialization round trip, I'm only doing this in tests