final Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "impl" ) );
filter.components.put( "rolehint2", dom2 );
final ZipArchiver archiver = new ZipArchiver();
final File archiveFile = fileManager.createTempFile();
archiver.setDestFile( archiveFile );
final File descriptorFile = fileManager.createTempFile();
archiver.setArchiveFinalizers( Collections.<ArchiveFinalizer>singletonList( filter ) );
archiver.createArchive();
final ZipFile zf = new ZipFile( archiveFile );
final ZipEntry ze = zf.getEntry( ComponentsXmlArchiverFileFilter.COMPONENTS_XML_PATH );