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

package com.azure.resourcemanager.support.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
import org.junit.jupiter.api.Assertions;

public final class ProblemClassificationInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProblemClassificationInner model =
            BinaryData
                .fromString(
                    "{\"id\":\"mayhuybbkpodepoo\",\"name\":\"nuvamiheogna\",\"type\":\"zxtheotusivyevcc\",\"properties\":{\"displayName\":\"hn\"}}")
                .toObject(ProblemClassificationInner.class);
        Assertions.assertEquals("hn", model.displayName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ProblemClassificationInner model = new ProblemClassificationInner().withDisplayName("hn");
        model = BinaryData.fromObject(model).toObject(ProblemClassificationInner.class);
        Assertions.assertEquals("hn", model.displayName());
    }
}
