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

public final class ApplicationPackagePropertiesTests {
    @Test
    public void testDeserialize() {
        ApplicationPackageProperties model =
            BinaryData
                .fromString(
                    "{\"state\":\"Active\",\"format\":\"kirsoodqxhc\",\"storageUrl\":\"nohjt\",\"storageUrlExpiry\":\"2020-12-26T05:08:12Z\",\"lastActivationTime\":\"2021-01-23T02:14:07Z\"}")
                .toObject(ApplicationPackageProperties.class);
    }

    @Test
    public void testSerialize() {
        ApplicationPackageProperties model = new ApplicationPackageProperties();
        model = BinaryData.fromObject(model).toObject(ApplicationPackageProperties.class);
    }
}
