PackageMojo extends AbstractMuleMojo { protected PackageBuilder getPackageBuilder() { options = buildPackagingOptions(); return PackageBuilderFactory.create(getPackagingType(), options); }  @Override void doExecute(); @Override String getPreviousRunPlaceholder();  }
@Test public void setOnlyMuleSourcesWhenMuleApplicationTemplate() throws MojoExecutionException, IOException { mojo = new PackageMojo(); mojo.classifier = Classifier.MULE_APPLICATION_TEMPLATE.toString(); when(projectMock.getPackaging()).thenReturn(MULE_APPLICATION); mojo.project = projectMock; mojo.getPackageBuilder(); assertThat("Packaging options should be set to only mule sources", mojo.options.isOnlyMuleSources(), is(true)); }