### Question:
StrictParser { public static Keyframe parseKeyframe(ByteInputStream stream) throws PacketParseException { Keyframe keyframe = new Keyframe(); if(stream.nextByte() != 0x03) throw new PacketParseException("Invalid keyframe header."); keyframe.setTimeStamp(stream.nextFloat()); stream.read(0xB); while(true) { byte marker = stream.nextByte(); stream.read(0x1); short signature = stream.nextShort(); if(signature == PLAYER_SIGNATURE) { if(marker == (byte)0xB3) stream.read(0x1); else if(marker == (byte)0x93) stream.read(0x4); else throw new PacketParseException("Invalid player header marker."); parseKeyframePlayer(stream, keyframe); } else { break; } } return keyframe; }  static Keyframe parseKeyframe(ByteInputStream stream);  }### Answer:
@Test public void testParseKeyframe() throws Exception { ByteInputStream stream = new ByteInputStream(FileUtil.readFileBytes(file.getCanonicalPath())); StrictParser.parseKeyframe(stream); }