@Test
public void testPageImportsWithComments() throws Exception {

	JspAnalyzerPlugin jspAnalyzerPlugin = new JspAnalyzerPlugin();
	URL url = getResource("dependencies/page_imports_with_comments.jsp");
	InputStream inputStream = url.openStream();
	String content = IO.collect(inputStream);
	Builder builder = new Builder();
	builder.build();
	jspAnalyzerPlugin.addApiUses(builder, content);
	Packages referredPackages = builder.getReferred();
	Assert.assertTrue(referredPackages.containsFQN("java.io"));
	Assert.assertFalse(referredPackages.containsFQN("javax.portlet"));
	Assert.assertFalse(
		referredPackages.containsFQN("javax.portlet.filter"));
	Assert.assertFalse(
		referredPackages.containsFQN("javax.portlet.tck.beans"));
	Assert.assertTrue(
		referredPackages.containsFQN("javax.portlet.tck.constants"));
	Assert.assertFalse(referredPackages.containsFQN("javax.servlet"));
	Assert.assertFalse(referredPackages.containsFQN("javax.servlet.http"));
}