### Question:
JavaScriptCompilerMojo extends AbstractWisdomWatcherMojo implements Constants { public File getMinifiedFile(File file) { File output = getOutputFile(file); return new File(output.getParentFile().getAbsoluteFile(), output.getName().replace(".js", googleClosureMinifierSuffix + ".js")); }  @Override void execute(); @Override boolean accept(File file); static boolean isNotInLibs(File file); boolean isNotMinified(File file); File getMinifiedFile(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file); @Parameter(defaultValue = "WHITESPACE_ONLY")
    public CompilationLevel googleClosureCompilationLevel; @Parameter(defaultValue = "false")
    public boolean googleClosurePrettyPrint; @Parameter(defaultValue = "${skipGoogleClosure}")
    public boolean skipGoogleClosure; @Parameter(defaultValue = "-min")
    public String googleClosureMinifierSuffix; @Parameter(defaultValue = "// -- Input %num% -- //")
    public String googleClosureInputDelimiter; @Parameter(defaultValue = "true")
    public boolean googleClosureMap; static final String COMPILE_TITLE; }### Answer:
@Test public void testGetMinifiedFile() { JavaScriptCompilerMojo mojo = new JavaScriptCompilerMojo(); mojo.googleClosureMinifierSuffix = "-minified"; mojo.basedir = new File("target/junk/root"); mojo.buildDirectory = new File(mojo.basedir, "target"); File file = new File(mojo.basedir, "src/main/resources/assets/foo.js"); assertThat(mojo.getMinifiedFile(file).getAbsolutePath()).isEqualTo( new File(mojo.buildDirectory, "classes/assets/foo-minified.js").getAbsolutePath()); file = new File(mojo.basedir, "src/main/assets/foo.js"); assertThat(mojo.getMinifiedFile(file).getAbsolutePath()).isEqualTo(new File(mojo.buildDirectory, "wisdom/assets/foo-minified.js").getAbsolutePath()); }