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

package com.azure.resourcemanager.devhub.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devhub.models.GitHubWorkflowProfileOidcCredentials;
import org.junit.jupiter.api.Assertions;

public final class GitHubWorkflowProfileOidcCredentialsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GitHubWorkflowProfileOidcCredentials model =
            BinaryData
                .fromString("{\"azureClientId\":\"zvddntwndeicbtwn\",\"azureTenantId\":\"aoqvuh\"}")
                .toObject(GitHubWorkflowProfileOidcCredentials.class);
        Assertions.assertEquals("zvddntwndeicbtwn", model.azureClientId());
        Assertions.assertEquals("aoqvuh", model.azureTenantId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        GitHubWorkflowProfileOidcCredentials model =
            new GitHubWorkflowProfileOidcCredentials()
                .withAzureClientId("zvddntwndeicbtwn")
                .withAzureTenantId("aoqvuh");
        model = BinaryData.fromObject(model).toObject(GitHubWorkflowProfileOidcCredentials.class);
        Assertions.assertEquals("zvddntwndeicbtwn", model.azureClientId());
        Assertions.assertEquals("aoqvuh", model.azureTenantId());
    }
}
