### Question:
TransformManager extends FilterableStreamCollection { @VisibleForTesting @NonNull static String getTaskNamePrefix(@NonNull Transform transform) { StringBuilder sb = new StringBuilder(100); sb.append("transform"); sb.append( transform .getInputTypes() .stream() .map( inputType -> CaseFormat.UPPER_UNDERSCORE.to( CaseFormat.UPPER_CAMEL, inputType.name())) .sorted() .collect(Collectors.joining("And"))); sb.append("With"); StringHelper.appendCapitalized(sb, transform.getName()); sb.append("For"); return sb.toString(); } TransformManager(
            @NonNull Project project,
            @NonNull EvalIssueReporter issueReporter,
            @NonNull Recorder recorder); void addStream(@NonNull TransformStream stream); @NonNull Optional<TaskProvider<TransformTask>> addTransform(
            @NonNull TaskFactory taskFactory, @NonNull VariantScope scope, @NonNull T transform); @NonNull Optional<TaskProvider<TransformTask>> addTransform(
            @NonNull TaskFactory taskFactory,
            @NonNull VariantScope scope,
            @NonNull T transform,
            @Nullable PreConfigAction preConfigAction,
            @Nullable TaskConfigAction<TransformTask> configAction,
            @Nullable TaskProviderCallback<TransformTask> providerCallback); @Override @NonNull List<TransformStream> getStreams(); @Deprecated void consumeStreams(
            @NonNull Set<? super Scope> requestedScopes, @NonNull Set<ContentType> requestedTypes); static final Set<Scope> EMPTY_SCOPES; static final Set<ContentType> CONTENT_CLASS; static final Set<ContentType> CONTENT_JARS; static final Set<ContentType> CONTENT_RESOURCES; static final Set<ContentType> CONTENT_NATIVE_LIBS; static final Set<ContentType> CONTENT_DEX; static final Set<ContentType> CONTENT_DEX_WITH_RESOURCES; static final Set<ScopeType> PROJECT_ONLY; static final Set<Scope> SCOPE_FULL_PROJECT; static final Set<ScopeType> SCOPE_FULL_WITH_IR_FOR_DEXING; static final Set<ScopeType> SCOPE_FULL_WITH_FEATURES; static final Set<ScopeType> SCOPE_FULL_WITH_IR_AND_FEATURES; static final Set<ScopeType> SCOPE_FEATURES; static final Set<ScopeType> SCOPE_FULL_LIBRARY_WITH_LOCAL_JARS; static final Set<ScopeType> SCOPE_IR_FOR_SLICING; }### Answer:
@Test public void testTaskName() throws Exception { Transform transform; transform = TestTransform.builder() .setInputTypes(DefaultContentType.CLASSES) .setName("Enhancer") .build(); assertThat(TransformManager.getTaskNamePrefix(transform)) .isEqualTo("transformClassesWithEnhancerFor"); transform = TestTransform.builder() .setInputTypes(DefaultContentType.CLASSES, DefaultContentType.RESOURCES) .setName("verifier") .build(); assertThat(TransformManager.getTaskNamePrefix(transform)) .isEqualTo("transformClassesAndResourcesWithVerifierFor"); transform = TestTransform.builder() .setInputTypes( ExtendedContentType.CLASSES_ENHANCED, ExtendedContentType.NATIVE_LIBS) .setName("fooBar") .build(); assertThat(TransformManager.getTaskNamePrefix(transform)) .isEqualTo("transformClassesEnhancedAndNativeLibsWithFooBarFor"); }