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

public final class ApplicationPackageInnerTests {
    @Test
    public void testDeserialize() {
        ApplicationPackageInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"state\":\"Active\",\"format\":\"nsez\",\"storageUrl\":\"tbzsgfyccs\",\"storageUrlExpiry\":\"2021-01-11T19:46:12Z\",\"lastActivationTime\":\"2021-01-16T10:20:52Z\"},\"etag\":\"z\",\"id\":\"eiachboosflnr\",\"name\":\"sfqpteehz\",\"type\":\"vypyqrimzinpv\"}")
                .toObject(ApplicationPackageInner.class);
    }

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