### Question:
ProcessResources extends AbstractMuleMojo { protected void generateExportedZipFile(File metaInfFolder, File projectBaseFolder) throws MojoExecutionException { ZipArchiver archiver = getZipArchiver(); String output = metaInfFolder.getAbsolutePath() + File.separator + projectBaseFolder.getName() + ".zip"; try { archiver.toZip(projectBaseFolder, output); } catch (IOException e) { throw new MojoExecutionException("Could not create exportable zip file", e); } }  @Override void execute(); ZipArchiver getZipArchiver(); static final String META_INF_FOLDER; static final String[] BLACK_LIST; }### Answer:
@Test public void generateExportedZipFile() throws MojoExecutionException, IOException { ProcessResources processResourcesSpy = spy(processResources); ZipArchiver zipArchiverMock = mock(ZipArchiver.class); doReturn(zipArchiverMock).when(processResourcesSpy).getZipArchiver(); File metaInfFolderMock = mock(File.class); File projectBaseFolderMock = mock(File.class); processResourcesSpy.generateExportedZipFile(metaInfFolderMock, projectBaseFolderMock); verify(zipArchiverMock).toZip(eq(projectBaseFolderMock), anyString()); }