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

public final class GovernanceAssignmentAdditionalDataTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GovernanceAssignmentAdditionalData model =
            BinaryData
                .fromString("{\"ticketNumber\":885021040,\"ticketLink\":\"njuhpsprkzya\",\"ticketStatus\":\"ia\"}")
                .toObject(GovernanceAssignmentAdditionalData.class);
        Assertions.assertEquals(885021040, model.ticketNumber());
        Assertions.assertEquals("njuhpsprkzya", model.ticketLink());
        Assertions.assertEquals("ia", model.ticketStatus());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        GovernanceAssignmentAdditionalData model =
            new GovernanceAssignmentAdditionalData()
                .withTicketNumber(885021040)
                .withTicketLink("njuhpsprkzya")
                .withTicketStatus("ia");
        model = BinaryData.fromObject(model).toObject(GovernanceAssignmentAdditionalData.class);
        Assertions.assertEquals(885021040, model.ticketNumber());
        Assertions.assertEquals("njuhpsprkzya", model.ticketLink());
        Assertions.assertEquals("ia", model.ticketStatus());
    }
}
