@Test
public void setsAndroidPluginVersion() throws Exception {

  File buildFile = TestUtils.getTestDataFile(PROJECT_BUILD_FILE);
  String content = Files.asCharSource(buildFile, UTF_8).read();
  GradleContext context = GroovyGradleParser.parseGradleBuildFile(content, 1, null).build();
  assertThat(context.getAndroidPluginVersion()).isNotNull();
  assertThat(context.getAndroidPluginVersion().getMajorVersion()).isEqualTo(3);
  assertThat(context.getAndroidPluginVersion().getMinorVersion()).isEqualTo(4);
}