ExternalBuildGlobalScope implements TransformGlobalScope { @NonNull @Override public File getBuildDir() { return project.getBuildDir(); } ExternalBuildGlobalScope(Project project); @Override Project getProject(); @NonNull @Override File getBuildDir(); @Override boolean isActive(OptionalCompilationStep step);  }
@Test public void testBuildDir() { when(project.getBuildDir()).thenReturn(new File("/tmp/out/folder")); scope = new ExternalBuildGlobalScope(project); assertThat(scope.getBuildDir().getPath()).isEqualTo( "/tmp/out/folder".replace('/', File.separatorChar)); }