### Question:
ByteConversion { public static int[] bytesToInts(byte[] bytes) { final int[] ints = new int[bytes.length >> 2]; for (int i = 0; i < ints.length; ++i) { final byte b4 = bytes[i * 4]; final byte b3 = bytes[i * 4 + 1]; final byte b2 = bytes[i * 4 + 2]; final byte b1 = bytes[i * 4 + 3]; ints[i] = (b1 & 0xFF) | (b2 & 0xFF) << 8 | (b3 & 0xFF) << 16 | (b4 & 0xFF) << 24; } return ints; } private  ByteConversion(); static int[] bytesToInts(byte[] bytes); static byte[] intsToBytes(int[] ints);  }### Answer:
@Test public void testBytesToInt() throws Exception { final int[] ints = ByteConversion.bytesToInts(new byte[]{0x01, 0x02, 0x03, 0x04}); assertEquals(0x01020304, ints[0]); }