// 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.fluent.models.GitHubOAuthProperties;
import org.junit.jupiter.api.Assertions;

public final class GitHubOAuthPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GitHubOAuthProperties model =
            BinaryData.fromString("{\"username\":\"wvukx\"}").toObject(GitHubOAuthProperties.class);
        Assertions.assertEquals("wvukx", model.username());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        GitHubOAuthProperties model = new GitHubOAuthProperties().withUsername("wvukx");
        model = BinaryData.fromObject(model).toObject(GitHubOAuthProperties.class);
        Assertions.assertEquals("wvukx", model.username());
    }
}
