inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
   let template = normalizer.normalizeTemplateSync(dirType, new CompileTemplateMetadata({
                                                     encapsulation: null,
                                                     template: '',
                                                     templateUrl: null,
                                                     styles: [],
                                                     styleUrls: ['test.css']
                                                   }))
   expect(template.encapsulation).toEqual(ViewEncapsulation.Emulated);
 }));
 inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
   let template = normalizer.normalizeTemplateSync(dirType, new CompileTemplateMetadata({
                                                     encapsulation: null,
                                                     template: '',
                                                     templateUrl: null,
                                                     styles: [],
                                                     styleUrls: ['test.css']
                                                   }))
   expect(template.styleUrls).toEqual(['package:some/module/test.css']);
 }));
 inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
   let template = normalizer.normalizeTemplateSync(dirType, new CompileTemplateMetadata({
                                                     encapsulation: null,
                                                     template: 'a',
                                                     templateUrl: null,
                                                     styles: [],
                                                     styleUrls: []
                                                   }))
   expect(template.template).toEqual('a');
   expect(template.templateUrl).toEqual('package:some/module/a.js');
 }));
 (config: CompilerConfig, normalizer: DirectiveNormalizer) => {
   config.defaultEncapsulation = ViewEncapsulation.None;
   let template =
       normalizer.normalizeTemplateSync(dirType, new CompileTemplateMetadata({
                                          encapsulation: null,
                                          template: '',
                                          templateUrl: null,
                                          styles: [],
                                          styleUrls: ['test.css']
                                        }))
   expect(template.encapsulation).toEqual(ViewEncapsulation.None);
 }));
 inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
   const template = normalizer.normalizeTemplateSync({
     componentType: SomeComp,
     moduleUrl: SOME_MODULE_URL,
     encapsulation: null,
     template: '',
     templateUrl: null,
     styles: [],
     styleUrls: ['test.css']
   });
   expect(template.encapsulation).toEqual(ViewEncapsulation.Emulated);
 }));
 inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
   const template = normalizer.normalizeTemplateSync({
     componentType: SomeComp,
     moduleUrl: SOME_MODULE_URL,
     encapsulation: null,
     template: '<style>@import test.css</style>',
     templateUrl: null,
     styles: [],
     styleUrls: []
   });
   expect(template.styleUrls).toEqual(['package:some/module/test.css']);
 }));
 (config: CompilerConfig, normalizer: DirectiveNormalizer) => {
   config.defaultEncapsulation = ViewEncapsulation.None;
   const template = normalizer.normalizeTemplateSync({
     componentType: SomeComp,
     moduleUrl: SOME_MODULE_URL,
     encapsulation: null,
     template: '',
     templateUrl: null,
     styles: [],
     styleUrls: ['test.css']
   });
   expect(template.encapsulation).toEqual(ViewEncapsulation.None);
 }));
 inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
   const template = normalizer.normalizeTemplateSync({
     componentType: SomeComp,
     moduleUrl: SOME_MODULE_URL,
     encapsulation: null,
     template: 'a',
     templateUrl: null,
     styles: [],
     styleUrls: []
   });
   expect(template.template).toEqual('a');
   expect(template.templateUrl).toEqual('package:some/module/a.js');
 }));