@Test public void createMulePackageBuilderMuleDomainPackagingTypeTest() { PackageBuilder actualPackageBuilder = PackageBuilderFactory.create(PackagingType.MULE_DOMAIN, mock(PackagingOptions.class)); assertThat("Package builder type is not the expected", actualPackageBuilder, instanceOf(MulePackageBuilder.class)); }
public static PackageBuilder create(PackagingType packagingType, PackagingOptions options) { if (packagingType.equals(MULE_DOMAIN_BUNDLE)) { return new DomainBundlePackageBuilder(); } return new MulePackageBuilder().withPackagingOptions(options); }
PackageBuilderFactory { public static PackageBuilder create(PackagingType packagingType, PackagingOptions options) { if (packagingType.equals(MULE_DOMAIN_BUNDLE)) { return new DomainBundlePackageBuilder(); } return new MulePackageBuilder().withPackagingOptions(options); } }
PackageBuilderFactory { public static PackageBuilder create(PackagingType packagingType, PackagingOptions options) { if (packagingType.equals(MULE_DOMAIN_BUNDLE)) { return new DomainBundlePackageBuilder(); } return new MulePackageBuilder().withPackagingOptions(options); }  }
PackageBuilderFactory { public static PackageBuilder create(PackagingType packagingType, PackagingOptions options) { if (packagingType.equals(MULE_DOMAIN_BUNDLE)) { return new DomainBundlePackageBuilder(); } return new MulePackageBuilder().withPackagingOptions(options); }  static PackageBuilder create(PackagingType packagingType, PackagingOptions options); }
PackageBuilderFactory { public static PackageBuilder create(PackagingType packagingType, PackagingOptions options) { if (packagingType.equals(MULE_DOMAIN_BUNDLE)) { return new DomainBundlePackageBuilder(); } return new MulePackageBuilder().withPackagingOptions(options); }  static PackageBuilder create(PackagingType packagingType, PackagingOptions options);  }