PcapPacket packet = TestUtils.getPcapPacket("tests/test-http-jpeg.pcap", 5);
assertTrue("Can't find HTTP header", packet.hasHeader(JProtocol.HTTP_ID));
Html html = packet.getHeader(new Html());
assertNotNull("Can't find HTML header", html);
System.out.printf("link related tags=%s\n", Arrays.asList(html.links())
.toString());
System.out.printf("All tags=%s\n", Arrays.asList(html.tags()).toString());
}