### Question:
JavaScriptCompilerMojo extends AbstractWisdomWatcherMojo implements Constants { protected File getDefaultOutputFile(Aggregation aggregation) { String classifier = googleClosureMinifierSuffix; if (aggregation.isMinification()) { if (javascript.getMinifierSuffix() != null) { classifier = javascript.getMinifierSuffix(); } } else { classifier = ""; } return new File(getInternalAssetOutputDirectory(), project.getArtifactId() + classifier + ".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 testGetDefaultOutputFile() { JavaScriptCompilerMojo mojo = new JavaScriptCompilerMojo(); mojo.googleClosureMinifierSuffix = "-min"; mojo.basedir = new File("target/junk/root"); mojo.buildDirectory = new File(mojo.basedir, "target"); JavaScript javascript = new JavaScript(); mojo.javascript = javascript; MavenProject project = mock(MavenProject.class); when(project.getArtifactId()).thenReturn("my-artifact"); mojo.project = project; Aggregation aggregation = new Aggregation(); aggregation.setMinification(true); javascript.setAggregations(ImmutableList.of(aggregation)); assertThat(mojo.getDefaultOutputFile(aggregation).getAbsolutePath()).isEqualTo(new File(mojo.buildDirectory, "classes/assets/my-artifact-min.js").getAbsolutePath()); }