### Question:
IsoTypeReader { public static String read4cc(ByteBuffer bb) { byte[] codeBytes = new byte[4]; bb.get(codeBytes); try { return new String(codeBytes, "ISO-8859-1"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }  static long readUInt32BE(ByteBuffer bb); static long readUInt32(ByteBuffer bb); static int readUInt24(ByteBuffer bb); static int readUInt16(ByteBuffer bb); static int readUInt16BE(ByteBuffer bb); static int readUInt8(ByteBuffer bb); static int byte2int(byte b); static String readString(ByteBuffer byteBuffer); static String readString(ByteBuffer byteBuffer, int length); static long readUInt64(ByteBuffer byteBuffer); static double readFixedPoint1616(ByteBuffer bb); static double readFixedPoint0230(ByteBuffer bb); static float readFixedPoint88(ByteBuffer bb); static String readIso639(ByteBuffer bb); static String read4cc(ByteBuffer bb); static long readUInt48(ByteBuffer byteBuffer);  }### Answer:
@Test public void testRead4cc() throws IOException { ByteBuffer bb = ByteBuffer.wrap("abcd".getBytes()); String code = IsoTypeReader.read4cc(bb); Assert.assertEquals(4, bb.position()); Assert.assertEquals("abcd", code); }