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

package com.azure.resourcemanager.managementgroups.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.managementgroups.models.CreateParentGroupInfo;
import org.junit.jupiter.api.Assertions;

public final class CreateParentGroupInfoTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CreateParentGroupInfo model =
            BinaryData
                .fromString("{\"id\":\"c\",\"name\":\"ierhhbcsglummaj\",\"displayName\":\"aodxo\"}")
                .toObject(CreateParentGroupInfo.class);
        Assertions.assertEquals("c", model.id());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CreateParentGroupInfo model = new CreateParentGroupInfo().withId("c");
        model = BinaryData.fromObject(model).toObject(CreateParentGroupInfo.class);
        Assertions.assertEquals("c", model.id());
    }
}
