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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.models.AuthPlatform;
import org.junit.jupiter.api.Assertions;

public final class AuthPlatformTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AuthPlatform model =
            BinaryData.fromString("{\"enabled\":true,\"runtimeVersion\":\"yahux\"}").toObject(AuthPlatform.class);
        Assertions.assertEquals(true, model.enabled());
        Assertions.assertEquals("yahux", model.runtimeVersion());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AuthPlatform model = new AuthPlatform().withEnabled(true).withRuntimeVersion("yahux");
        model = BinaryData.fromObject(model).toObject(AuthPlatform.class);
        Assertions.assertEquals(true, model.enabled());
        Assertions.assertEquals("yahux", model.runtimeVersion());
    }
}
