}
@Test
public void testGetJsContentWithOpt() throws Exception {
JsUri jsUri = mockJsUri(false); // optimized
FeatureResource extRes = mockResource(true, RESOURCE_URL_DEB, RESOURCE_URL_OPT);
FeatureResource intRes = mockResource(false, RESOURCE_CONTENT_DEB, RESOURCE_CONTENT_OPT);
FeatureBundle bundle = mockBundle(Lists.newArrayList(extRes, intRes));
Iterable<JsContent> actual = compiler.getJsContent(jsUri, bundle);
assertEquals(
"document.write('<script src=\"" + RESOURCE_URL_OPT + "\"></script>');\n" +
RESOURCE_CONTENT_OPT + ";\n",