public void testWriteManifestWithUseAppCacheFalse() throws Exception {
AuraContext context = Aura.getContextService().getCurrentContext();
DefDescriptor<ApplicationDef> desc = addSourceAutoCleanup(ApplicationDef.class,
"<aura:application render='client' useAppcache='false'></aura:application>");
context.setApplicationDescriptor(desc);
context.addLoaded(desc, context.getDefRegistry().getUid(null, desc));
String body = doWrite(desc.getDef());
int start = body.indexOf("<html");
String tag = body.substring(start, body.indexOf('>', start) + 1);
if (tag.contains(" manifest=")) {
fail("Should not have included a manifest attribute useAppCache = false:\n" + body);