boolean isGeneratedFromSource(ClassTemplateSpec templateSpec)
  {
    DataSchemaLocation location = _specGenerator.getClassLocation(templateSpec);
    return location != null && _sourceFiles.contains(location.getSourceFile().getAbsolutePath());
  }
@Test
  public void testGeneratedFromSource() throws  Exception
  {
    ProjectionMaskApiChecker projectionMaskApiChecker = new ProjectionMaskApiChecker(
        _templateSpecGenerator, _sourceFiles, _classLoader);
    Mockito.when(_nestedTypeSource.getAbsolutePath()).thenReturn(pegasusDir + FS + "Bar.pdl");

    Assert.assertTrue(projectionMaskApiChecker.isGeneratedFromSource(_templateSpec));
    Mockito.verify(_nestedTypeSource, Mockito.atLeast(1)).getAbsolutePath();
  }