### Question:
TypedefRemover implements JarMerger.Transformer { public void remove(@NonNull Collection<File> classDir, @NonNull List<String> owners) { if (!mQuiet) { info("Deleting @IntDef and @StringDef annotation class files"); } for (String owner : owners) { addTypeDef(owner); } rewriteOuterClasses(classDir); deleteAnnotationClasses(classDir); } TypedefRemover(
            boolean quiet,
            boolean verbose,
            boolean dryRun);  TypedefRemover(); @NonNull TypedefRemover setTypedefFile(@NonNull File file); @Override @Nullable InputStream filter(@NonNull String path, @NonNull InputStream input); void removeFromTypedefFile(@NonNull File classDir, @NonNull File file); void removeFromTypedefFile(@NonNull Collection<File> classDirs, @NonNull File file); void remove(@NonNull Collection<File> classDir, @NonNull List<String> owners);  }### Answer:
@Test public void testRemoveFiles() throws IOException { TypedefRemover remover = new TypedefRemover(); testFolder.newFolder("test", "pkg"); File innerClass = testFolder.newFile("test/pkg/OuterClass$InnerClass.class"); File outerClass = testFolder.newFile("test/pkg/OuterClass.class"); File unrelated = testFolder.newFile("test/pkg/Unrelated.class"); innerClass.getParentFile().mkdirs(); Files.write(INNER_CLASS, innerClass); Files.write(OUTER_CLASS, outerClass); Files.write(new byte[0], unrelated); remover.remove(Arrays.asList(Files.createTempDir(), testFolder.getRoot()), Collections.singletonList("test/pkg/OuterClass$InnerClass")); assertThat(unrelated.isFile()).isTrue(); assertThat(innerClass.exists()).isFalse(); assertThat(Files.toByteArray(outerClass)).isEqualTo(REWRITTEN_OUTER_CLASS); }