DefaultBuildType extends BaseConfigImpl implements BuildType { public DefaultBuildType initWith(BuildType that) { _initWith(that); setDebuggable(that.isDebuggable()); setTestCoverageEnabled(that.isTestCoverageEnabled()); setJniDebuggable(that.isJniDebuggable()); setRenderscriptDebuggable(that.isRenderscriptDebuggable()); setRenderscriptOptimLevel(that.getRenderscriptOptimLevel()); setVersionNameSuffix(that.getVersionNameSuffix()); setMinifyEnabled(that.isMinifyEnabled() ); setZipAlignEnabled(that.isZipAlignEnabled()); setSigningConfig(that.getSigningConfig()); setEmbedMicroApp(that.isEmbedMicroApp()); setPseudoLocalesEnabled(that.isPseudoLocalesEnabled()); return this; } DefaultBuildType(@NonNull String name); DefaultBuildType initWith(BuildType that); @Override @NonNull String getName(); @NonNull BuildType setDebuggable(boolean debuggable); @Override boolean isDebuggable(); void setTestCoverageEnabled(boolean testCoverageEnabled); @Override boolean isTestCoverageEnabled(); void setPseudoLocalesEnabled(boolean pseudoLocalesEnabled); @Override boolean isPseudoLocalesEnabled(); @NonNull BuildType setJniDebuggable(boolean jniDebugBuild); @Override boolean isJniDebuggable(); @Override boolean isRenderscriptDebuggable(); BuildType setRenderscriptDebuggable(boolean renderscriptDebugBuild); @Override int getRenderscriptOptimLevel(); void setRenderscriptOptimLevel(int renderscriptOptimLevel); @NonNull BuildType setMinifyEnabled(boolean enabled); @Override boolean isMinifyEnabled(); @NonNull BuildType setZipAlignEnabled(boolean zipAlign); @Override boolean isZipAlignEnabled(); @NonNull BuildType setSigningConfig(@Nullable SigningConfig signingConfig); @Override @Nullable SigningConfig getSigningConfig(); @Override boolean isEmbedMicroApp(); void setEmbedMicroApp(boolean embedMicroApp); @Override boolean equals(Object o); @Override int hashCode(); @Override @NonNull String toString();  }
@Test public void testInitWith() throws Exception { CopyOfTester.assertAllGettersCalled( BuildType.class, new DefaultBuildType("debug"), original -> new DefaultBuildType(original.getName()).initWith(original)); }