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

package com.azure.resourcemanager.hanaonazure.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hanaonazure.models.SapSystemId;
import org.junit.jupiter.api.Assertions;

public final class SapSystemIdTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SapSystemId model =
            BinaryData
                .fromString(
                    "{\"gid\":\"bquxigjy\",\"memoryAllocation\":\"zjaoyfhrtxil\",\"sid\":\"rkujy\",\"username\":\"l\",\"uid\":\"uvfqawrlyxwj\"}")
                .toObject(SapSystemId.class);
        Assertions.assertEquals("bquxigjy", model.gid());
        Assertions.assertEquals("rkujy", model.sid());
        Assertions.assertEquals("l", model.username());
        Assertions.assertEquals("uvfqawrlyxwj", model.uid());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SapSystemId model =
            new SapSystemId().withGid("bquxigjy").withSid("rkujy").withUsername("l").withUid("uvfqawrlyxwj");
        model = BinaryData.fromObject(model).toObject(SapSystemId.class);
        Assertions.assertEquals("bquxigjy", model.gid());
        Assertions.assertEquals("rkujy", model.sid());
        Assertions.assertEquals("l", model.username());
        Assertions.assertEquals("uvfqawrlyxwj", model.uid());
    }
}
