config.setPackaging( "ear" );
// add an ejb3 and ejb packaged dependency
config.setDeps( new IdeDependency[] { createDep( "ejb" ), createDep( "jar" ) } );
EclipseWtpComponentWriter lWriter = new EclipseWtpComponent15Writer();
Log log = new TestLog();
lWriter.init( log, config );
lWriter.write();
// now check extension of archivenames to be jar
SAXBuilder builder = new SAXBuilder( false );
Document doc = builder.build( new File( basedir, ".settings/org.eclipse.wst.common.component" ) );