@Test
public void testByteAraryToPostive() {

  final Object[][] testParameters = new Object[][] {
      {new byte[0], BigInteger.ZERO},
      {new byte[] {(byte) 0x00}, BigInteger.valueOf(0L)},
      {new byte[] {(byte) 0x7F}, BigInteger.valueOf(127L)},
      {new byte[] {(byte) 0xFF}, BigInteger.valueOf(255L)}
  };
  for (final Object[] testParameter : testParameters) {
    final byte[] rawBytes = (byte[]) testParameter[0];
    final BigInteger expected = (BigInteger) testParameter[1];
    final BigInteger actual = NumberUtils.byteArrayToPositive(rawBytes);
    assertTrue(expected.equals(actual));
  }
}