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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner;
import com.azure.resourcemanager.appcontainers.models.DaprSecret;
import java.util.Arrays;

public final class DaprSecretsCollectionInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DaprSecretsCollectionInner model =
            BinaryData
                .fromString("{\"value\":[{\"name\":\"sxnkjzkdeslpvlo\",\"value\":\"i\"}]}")
                .toObject(DaprSecretsCollectionInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DaprSecretsCollectionInner model = new DaprSecretsCollectionInner().withValue(Arrays.asList(new DaprSecret()));
        model = BinaryData.fromObject(model).toObject(DaprSecretsCollectionInner.class);
    }
}
