public SchemaFormatType getSourceFileFormat()
  {
    if (_enclosingClass != null)
    {
      return _enclosingClass.getSourceFileFormat();
    }
    return SchemaFormatType.fromFilename(_location);
  }
@Test(dataProvider = "getSourceFileFormatData")
  public void testGetSourceFileFormat(String[] locations, SchemaFormatType expected)
  {
    ClassTemplateSpec enclosingClassTemplateSpec = null;
    for (String location : locations)
    {
      ClassTemplateSpec classTemplateSpec = new ClassTemplateSpec();
      classTemplateSpec.setLocation(location);
      classTemplateSpec.setEnclosingClass(enclosingClassTemplateSpec);

      Assert.assertEquals(classTemplateSpec.getSourceFileFormat(), expected);
      enclosingClassTemplateSpec = classTemplateSpec;
    }
  }