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

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.models.GcpProjectDetails;
import org.junit.jupiter.api.Assertions;

public final class GcpProjectDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GcpProjectDetails model =
            BinaryData
                .fromString(
                    "{\"projectNumber\":\"rsidqpxlbtpakf\",\"projectId\":\"gatwmykyu\",\"workloadIdentityPoolId\":\"ym\",\"projectName\":\"mfjhpycvjqdvdwkq\"}")
                .toObject(GcpProjectDetails.class);
        Assertions.assertEquals("rsidqpxlbtpakf", model.projectNumber());
        Assertions.assertEquals("gatwmykyu", model.projectId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        GcpProjectDetails model =
            new GcpProjectDetails().withProjectNumber("rsidqpxlbtpakf").withProjectId("gatwmykyu");
        model = BinaryData.fromObject(model).toObject(GcpProjectDetails.class);
        Assertions.assertEquals("rsidqpxlbtpakf", model.projectNumber());
        Assertions.assertEquals("gatwmykyu", model.projectId());
    }
}
