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

package com.azure.resourcemanager.resourcegraph.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.resourcegraph.models.Facet;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class FacetTests {
    @Test
    public void testDeserialize() {
        Facet model = BinaryData.fromString("{\"resultType\":\"Facet\",\"expression\":\"j\"}").toObject(Facet.class);
        Assertions.assertEquals("j", model.expression());
    }

    @Test
    public void testSerialize() {
        Facet model = new Facet().withExpression("j");
        model = BinaryData.fromObject(model).toObject(Facet.class);
        Assertions.assertEquals("j", model.expression());
    }
}
