### Question:
CSSMinifierMojo extends AbstractWisdomWatcherMojo { protected File getMinifiedFile(File input) { File output = getOutputFile(input); String ext = FilenameUtils.getExtension(output.getName()); return new File(output.getParentFile().getAbsoluteFile(), output.getName().replace("." + ext, cssMinifierSuffix + ".css")); }  @Override void execute(); @Override boolean accept(File file); boolean isNotMinified(File file); @Override boolean fileCreated(File file); @Override boolean fileUpdated(File file); @Override boolean fileDeleted(File file); File getFilteredVersion(File input); static final String CLEANCSS_NPM_NAME; static final String CLEANCSS_NPM_VERSION; @Parameter(defaultValue = "${skipCleanCSS}")
    public boolean skipCleanCSS; @Parameter(defaultValue = "-min")
    public String cssMinifierSuffix; }### Answer:
@Test public void testGetMinifiedFile() { mojo.cssMinifierSuffix = "-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.css"); assertThat(mojo.getMinifiedFile(file).getAbsolutePath()).isEqualTo(new File(mojo.buildDirectory, "classes/assets/foo-minified.css").getAbsolutePath()); file = new File(mojo.basedir, "src/main/assets/foo.css"); assertThat(mojo.getMinifiedFile(file).getAbsolutePath()).isEqualTo(new File(mojo.buildDirectory, "wisdom/assets/foo-minified.css").getAbsolutePath()); }