ByteConverter { public static byte[] intToBytesLittleEndian(int n) { byte[] buf = new byte[4]; buf[0] = (byte) (0xff & n); buf[1] = (byte) ((0xff00 & n) >> 8); buf[2] = (byte) ((0xff0000 & n) >> 16); buf[3] = (byte) ((0xff000000 & n) >> 24); return buf; }  static int bytesToIntLittleEndian(byte buf[]); static byte[] intToBytesLittleEndian(int n); static int bytesToIntBigEndian(byte[] buf); static byte[] intToBytesBigEndian(int n); static int bytesToIntLittleEndian(byte buf[], int offset); static int bytesToIntBigEndian(byte[] buf, int offset);  }
@Test public void testIntToBytesLittleEndian() { fail("Not yet implemented"); }