@Test
public void parsesPluginType_Application() throws Exception {

  File buildFile = TestUtils.getTestDataFile(APP_BUILD_FILE);
  String content = Files.asCharSource(buildFile, UTF_8).read();
  GradleContext context = GroovyGradleParser.parseGradleBuildFile(content, 1, null).build();
  assertThat(context.getPluginType()).isEqualTo(GradleContext.PluginType.APPLICATION);
}