anchor.diff:          virDir.allowDirectoryListing = true;
   
           return getAsString(virDir, '/alert(\'hacked!\');').then((result) {
  -          expect(result, contains('&#x2F;alert(&#x27;hacked!&#x27;);&#x2F;'));
  +          expect(result, contains('&#47;alert(&#39;hacked!&#39;);&#47;'));
           });
         });
   
  
positive.code: import 'utils.dart';
  
  void _testEncoding(name, expected, [bool create = true]) {
    testVirtualDir('encode-$name', (dir) {
      if (create) new File('${dir.path}/$name').createSync();
      var virDir = new VirtualDirectory(dir.path);
      virDir.allowDirectoryListing = true;
  
      return getStatusCodeForVirtDir(virDir, '/$name').then((result) {
        expect(result, expected);
      });
    });
  }
  
  
negative.code:         virDir.allowDirectoryListing = true;
  
          return getAsString(virDir, '/').then((result) {
            expect(result, contains('Index of &#47'));
          });
        });
  
  