require_relative 'automated_init'

context "Error Data Deserialization" do
  test "Converts from JSON text" do
    compare_error_data = Controls::ErrorData.example

    json_text = Controls::ErrorData::JSON.text

    error_data = Transform::Read.(json_text, compare_error_data.class, :json)

    assert(error_data == compare_error_data)
  end
end
