### Question:
CustomClassTransform extends Transform { @NonNull @Override public Set<QualifiedContent.ContentType> getOutputTypes() { return addDependencies ? ImmutableSet.of(CLASSES, NATIVE_LIBS) : ImmutableSet.of(CLASSES); } CustomClassTransform(@NonNull String path, boolean addDependencies); @NonNull @Override String getName(); @NonNull @Override Set<QualifiedContent.ContentType> getInputTypes(); @NonNull @Override Set<QualifiedContent.ContentType> getOutputTypes(); @NonNull @Override Set<QualifiedContent.Scope> getScopes(); @NonNull @Override Collection<SecondaryFile> getSecondaryFiles(); @Override boolean isIncremental(); @Override void transform(@NonNull TransformInvocation invocation); static final Set<QualifiedContent.Scope> SCOPE_EXTERNAL; }### Answer:
@Test public void checkTransformPropertiesBasedOnAddDependencies() { Truth.assertThat(getTransform(false).getOutputTypes()) .named("getOutputTypes on addDependency == false") .containsExactly(CLASSES); Truth.assertThat(getTransform(true).getOutputTypes()) .named("getOutputTypes on addDependency == true") .containsExactly(CLASSES, NATIVE_LIBS); }