// Path: src/main/java/javafixes/math/BigIntegerUtil.java
// static boolean canConvertToLong(BigInteger unscaledValue) {
//     return unscaledValue.compareTo(MAX_LONG_AS_BIG_INTEGER) <= 0 && unscaledValue.compareTo(MIN_LONG_AS_BIG_INTEGER) >= 0;
// }
// 
// Path: src/test/java/javafixes/test/Random.java
//     @SafeVarargs
//     public static long randomLong(long from, long to, Function<Long, Boolean>... validityConditions) {
//         return generateValidValue(
// //                () -> new RandomDataGenerator().nextLong(from, to),
//                 () -> ThreadLocalRandom.current().nextLong(from, to) + (long) randomInt(0, 1),
//                 validityConditions
//         );
//     }


import org.junit.Test;
import java.math.BigInteger;
import static javafixes.math.BigIntegerUtil.canConvertToLong;
import static javafixes.test.Random.randomLong;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
package javafixes.math;




public class BigIntegerUtilTest {

    @Test
    public void shouldFindIfCanConvertBigIntegerToLong() {

// Path: src/main/java/javafixes/math/BigIntegerUtil.java
// static boolean canConvertToLong(BigInteger unscaledValue) {
//     return unscaledValue.compareTo(MAX_LONG_AS_BIG_INTEGER) <= 0 && unscaledValue.compareTo(MIN_LONG_AS_BIG_INTEGER) >= 0;
// }
// 
// Path: src/test/java/javafixes/test/Random.java
//     @SafeVarargs
//     public static long randomLong(long from, long to, Function<Long, Boolean>... validityConditions) {
//         return generateValidValue(
// //                () -> new RandomDataGenerator().nextLong(from, to),
//                 () -> ThreadLocalRandom.current().nextLong(from, to) + (long) randomInt(0, 1),
//                 validityConditions
//         );
//     }


// Path: src/test/java/javafixes/math/BigIntegerUtilTest.java
import org.junit.Test;
import java.math.BigInteger;
import static javafixes.math.BigIntegerUtil.canConvertToLong;
import static javafixes.test.Random.randomLong;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;

package javafixes.math;




public class BigIntegerUtilTest {

    @Test
    public void shouldFindIfCanConvertBigIntegerToLong() {

        assertThat(canConvertToLong(BigInteger.valueOf(Long.MAX_VALUE)), is(true));