// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.commerce.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.commerce.models.InfoField;
import org.junit.jupiter.api.Assertions;

public final class InfoFieldTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        InfoField model = BinaryData.fromString("{\"project\":\"slwejdpvw\"}").toObject(InfoField.class);
        Assertions.assertEquals("slwejdpvw", model.project());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        InfoField model = new InfoField().withProject("slwejdpvw");
        model = BinaryData.fromObject(model).toObject(InfoField.class);
        Assertions.assertEquals("slwejdpvw", model.project());
    }
}
