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

public final class InviteCodeGenerateRequestTests {
    @Test
    public void testDeserialize() {
        InviteCodeGenerateRequest model =
            BinaryData.fromString("{\"maxStudentCount\":2.6165128}").toObject(InviteCodeGenerateRequest.class);
        Assertions.assertEquals(2.6165128F, model.maxStudentCount());
    }

    @Test
    public void testSerialize() {
        InviteCodeGenerateRequest model = new InviteCodeGenerateRequest().withMaxStudentCount(2.6165128F);
        model = BinaryData.fromObject(model).toObject(InviteCodeGenerateRequest.class);
        Assertions.assertEquals(2.6165128F, model.maxStudentCount());
    }
}
