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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParameters;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ActivateApplicationPackageParametersTests {
    @Test
    public void testDeserialize() {
        ActivateApplicationPackageParameters model =
            BinaryData.fromString("{\"format\":\"ufufsrp\"}").toObject(ActivateApplicationPackageParameters.class);
        Assertions.assertEquals("ufufsrp", model.format());
    }

    @Test
    public void testSerialize() {
        ActivateApplicationPackageParameters model = new ActivateApplicationPackageParameters().withFormat("ufufsrp");
        model = BinaryData.fromObject(model).toObject(ActivateApplicationPackageParameters.class);
        Assertions.assertEquals("ufufsrp", model.format());
    }
}
