RepositoryFileImportBundle implements IPlatformImportBundle { @Override public RepositoryFileExtraMetaData getExtraMetaData() { return this.extraMetaData; } protected  RepositoryFileImportBundle(); @Override RepositoryFileAcl getAcl(); @Override void setAcl( RepositoryFileAcl acl ); @Override RepositoryFileExtraMetaData getExtraMetaData(); @Override void setExtraMetaData( RepositoryFileExtraMetaData extraMetaData ); @Override List<IPlatformImportBundle> getChildBundles(); @Override InputStream getInputStream(); void setInputStream( InputStream inStr ); @Override String getPath(); @Override void setPath( String path ); @Override String getName(); void setName( String name ); String getTitle(); void setTitle( String title ); @Override String getCharSet(); void setCharSet( String charSet ); @Override String getMimeType(); void setMimeType( String mimeType ); String getComment(); void setComment( String comment ); boolean overwriteInRepossitory(); void setOverwriteInRepository( boolean overwrite ); Boolean isHidden(); void setHidden( Boolean hidden ); Boolean isSchedulable(); void setSchedulable( Boolean schedulable ); boolean isFolder(); RepositoryFile getFile(); void setFile( RepositoryFile file ); boolean isOverwriteInRepository(); @Override boolean isApplyAclSettings(); @Override void setApplyAclSettings( boolean applyAclSettings ); @Override boolean isOverwriteAclSettings(); @Override void setOverwriteAclSettings( boolean overwriteAclSettings ); @Override boolean isRetainOwnership(); @Override void setRetainOwnership( boolean retainOwnership ); @Override Object getProperty( String prop ); @Override boolean overwriteInRepository(); @Override boolean isPreserveDsw(); @Override void setPreserveDsw( boolean preserveDsw );  }
@Test public void testBuilder() throws Exception { RepositoryFileExtraMetaData repositoryFileExtraMetaData = mock( RepositoryFileExtraMetaData.class ); RepositoryFileImportBundle.Builder builder = new RepositoryFileImportBundle.Builder(); builder.extraMetaData( repositoryFileExtraMetaData ); builder.mime( "text/directory" ); RepositoryFileImportBundle repositoryFileImportBundle = builder.build(); Assert.assertEquals( repositoryFileExtraMetaData, repositoryFileImportBundle.getExtraMetaData() ); }