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

package com.azure.resourcemanager.education.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.education.models.GrantListResponse;
import org.junit.jupiter.api.Test;

public final class GrantListResponseTests {
    @Test
    public void testDeserialize() {
        GrantListResponse model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"effectiveDate\":\"2021-08-11T05:57:13Z\",\"offerType\":\"Academic\",\"expirationDate\":\"2021-06-23T16:37:05Z\",\"status\":\"Inactive\"},\"id\":\"ikxwc\",\"name\":\"byscnp\",\"type\":\"x\"}],\"nextLink\":\"ivyqniwbybrkxvd\"}")
                .toObject(GrantListResponse.class);
    }

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