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

public final class StudentListResultTests {
    @Test
    public void testDeserialize() {
        StudentListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"firstName\":\"oulzndlikwyq\",\"lastName\":\"gfgibm\",\"email\":\"dgak\",\"role\":\"Admin\",\"subscriptionId\":\"rxybz\",\"expirationDate\":\"2021-03-26T22:16:08Z\",\"status\":\"Disabled\",\"effectiveDate\":\"2021-10-30T10:34:46Z\",\"subscriptionAlias\":\"bciqfouflm\",\"subscriptionInviteLastSentDate\":\"2021-09-02T23:31:13Z\"},\"id\":\"smodmgloug\",\"name\":\"b\",\"type\":\"wtmutduq\"},{\"properties\":{\"firstName\":\"ap\",\"lastName\":\"pwgcuertu\",\"email\":\"kdosvqw\",\"role\":\"Student\",\"subscriptionId\":\"dgbb\",\"expirationDate\":\"2020-12-24T00:21:41Z\",\"status\":\"Active\",\"effectiveDate\":\"2021-09-14T17:27:38Z\",\"subscriptionAlias\":\"mbe\",\"subscriptionInviteLastSentDate\":\"2021-10-01T04:14:33Z\"},\"id\":\"htqqrolfp\",\"name\":\"psalgbqux\",\"type\":\"gjyjgzjaoyfhrtxi\"}],\"nextLink\":\"erkujys\"}")
                .toObject(StudentListResult.class);
    }

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