// Path: src/main/java/io/datanerds/avropatch/value/type/BigIntegerType.java
// public interface BigIntegerType {
//     String NAME = "big-integer";
//     LogicalType LOGICAL_TYPE = new LogicalType(NAME);
//     Schema SCHEMA = LOGICAL_TYPE.addToSchema(Schema.create(Schema.Type.BYTES));
// }


import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import io.datanerds.avropatch.value.type.BigIntegerType;
import org.apache.avro.Schema;
import org.junit.Test;
import java.io.IOException;
import java.math.BigInteger;
package io.datanerds.avropatch.value.conversion;



public class BigIntegerConversionTest {

    @Test
    public void serializesSingleValue() throws IOException {
        ConversionTester
                .withSchemata(BigIntegerType.SCHEMA)
                .withConverters(new BigIntegerConversion())
                .reserializeAndAssert(BigInteger.valueOf(1234567890L))
                .reserializeAndAssert(new BigInteger("123456789012345678901234567890123456789012345678901234567890"));
    }

    @Test
    public void serializesList() throws IOException {
        ConversionTester
                .withSchemata(Schema.createArray(BigIntegerType.SCHEMA))
                .withConverters(new BigIntegerConversion())
                .reserializeAndAssert(ImmutableList.of(BigInteger.valueOf(1234567890L),
                        new BigInteger("123456789012345678901234567890123456789012345678901234567890"),
                        new BigInteger("9867451234560123985690347590378412095789345624401928453450891"
                                + "98943750934275093457023495723490890347590349046758903758902347568902347589023467")));
    }

    @Test
    public void serializesMap() throws IOException {
        ConversionTester
// Path: src/main/java/io/datanerds/avropatch/value/type/BigIntegerType.java
// public interface BigIntegerType {
//     String NAME = "big-integer";
//     LogicalType LOGICAL_TYPE = new LogicalType(NAME);
//     Schema SCHEMA = LOGICAL_TYPE.addToSchema(Schema.create(Schema.Type.BYTES));
// }


// Path: src/test/java/io/datanerds/avropatch/value/conversion/BigIntegerConversionTest.java
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import io.datanerds.avropatch.value.type.BigIntegerType;
import org.apache.avro.Schema;
import org.junit.Test;
import java.io.IOException;
import java.math.BigInteger;

package io.datanerds.avropatch.value.conversion;



public class BigIntegerConversionTest {

    @Test
    public void serializesSingleValue() throws IOException {
        ConversionTester
                .withSchemata(BigIntegerType.SCHEMA)
                .withConverters(new BigIntegerConversion())
                .reserializeAndAssert(BigInteger.valueOf(1234567890L))
                .reserializeAndAssert(new BigInteger("123456789012345678901234567890123456789012345678901234567890"));
    }

    @Test
    public void serializesList() throws IOException {
        ConversionTester
                .withSchemata(Schema.createArray(BigIntegerType.SCHEMA))
                .withConverters(new BigIntegerConversion())
                .reserializeAndAssert(ImmutableList.of(BigInteger.valueOf(1234567890L),
                        new BigInteger("123456789012345678901234567890123456789012345678901234567890"),
                        new BigInteger("9867451234560123985690347590378412095789345624401928453450891"
                                + "98943750934275093457023495723490890347590349046758903758902347568902347589023467")));
    }

    @Test
    public void serializesMap() throws IOException {
        ConversionTester
                .withSchemata(Schema.createMap(BigIntegerType.SCHEMA))