### Question:
Numeric { public static String toHexStringNoPrefixZeroPadded(BigInteger value, int size) { return toHexStringZeroPadded(value, size, false); } private  Numeric(); static String encodeQuantity(BigInteger value); static BigInteger decodeQuantity(String value); static String cleanHexPrefix(String input); static String prependHexPrefix(String input); static boolean containsHexPrefix(String input); static BigInteger toBigInt(byte[] value, int offset, int length); static BigInteger toBigInt(byte[] value); static BigInteger toBigInt(String hexValue); static BigInteger toBigIntNoPrefix(String hexValue); static String toHexStringWithPrefix(BigInteger value); static String toHexStringNoPrefix(BigInteger value); static String toHexStringNoPrefix(byte[] input); static String toHexStringWithPrefixZeroPadded(BigInteger value, int size); static String toHexStringNoPrefixZeroPadded(BigInteger value, int size); static byte[] toBytesPadded(BigInteger value, int length); static String littleEndian(long number); static byte[] hexStringToByteArray(String input); static String toHexString(byte[] input, int offset, int length, boolean withPrefix); static String toHexString(byte[] input); static String toHexString(String input); static byte asByte(int m, int n); static boolean isIntegerValue(BigDecimal value); static boolean isIntegerValue(String value); static List<Byte> intToBytes(int value);  }### Answer:
@Test public void testToHexStringNoPrefixZeroPadded() { Assertions.assertEquals(Numeric.toHexStringNoPrefixZeroPadded(BigInteger.ZERO, 5), "00000"); Assertions.assertEquals( Numeric.toHexStringNoPrefixZeroPadded( new BigInteger("11c52b08330e05d731e38c856c1043288f7d9744", 16), 40), "11c52b08330e05d731e38c856c1043288f7d9744"); Assertions.assertEquals( Numeric.toHexStringNoPrefixZeroPadded( new BigInteger("01c52b08330e05d731e38c856c1043288f7d9744", 16), 40), "01c52b08330e05d731e38c856c1043288f7d9744"); }
@Test public void testToHexStringZeroPaddedNegative() { Assertions.assertThrows( UnsupportedOperationException.class, () -> Numeric.toHexStringNoPrefixZeroPadded(BigInteger.valueOf(-1), 20)); }
@Test public void testToHexStringZeroPaddedTooLargs() { Assertions.assertThrows( UnsupportedOperationException.class, () -> Numeric.toHexStringNoPrefixZeroPadded(BigInteger.valueOf(-1), 5)); }