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

package com.azure.resourcemanager.agrifood.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.agrifood.fluent.models.FarmBeatsExtensionInner;
import com.azure.resourcemanager.agrifood.models.FarmBeatsExtensionListResponse;
import java.util.Arrays;
import org.junit.jupiter.api.Test;

public final class FarmBeatsExtensionListResponseTests {
    @Test
    public void testDeserialize() {
        FarmBeatsExtensionListResponse model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"targetResourceType\":\"uf\",\"farmBeatsExtensionId\":\"zk\",\"farmBeatsExtensionName\":\"dbihanufhfcbj\",\"farmBeatsExtensionVersion\":\"a\",\"publisherId\":\"th\",\"description\":\"hab\",\"extensionCategory\":\"pikxwczbyscnpqxu\",\"extensionAuthLink\":\"vyq\",\"extensionApiDocsLink\":\"wby\",\"detailedInformation\":[]},\"id\":\"xvd\",\"name\":\"mjgr\",\"type\":\"fwvuk\"},{\"properties\":{\"targetResourceType\":\"udccsnhsjc\",\"farmBeatsExtensionId\":\"ejhkry\",\"farmBeatsExtensionName\":\"napczwlokjy\",\"farmBeatsExtensionVersion\":\"kkvnipjox\",\"publisherId\":\"nchgej\",\"description\":\"odmailzyd\",\"extensionCategory\":\"o\",\"extensionAuthLink\":\"yahux\",\"extensionApiDocsLink\":\"pmqnja\",\"detailedInformation\":[]},\"id\":\"xj\",\"name\":\"prozvcputegjvwmf\",\"type\":\"atscmd\"}],\"nextLink\":\"jhulsuuvmkjo\"}")
                .toObject(FarmBeatsExtensionListResponse.class);
    }

    @Test
    public void testSerialize() {
        FarmBeatsExtensionListResponse model =
            new FarmBeatsExtensionListResponse()
                .withValue(Arrays.asList(new FarmBeatsExtensionInner(), new FarmBeatsExtensionInner()));
        model = BinaryData.fromObject(model).toObject(FarmBeatsExtensionListResponse.class);
    }
}
