assembly.setId( "test" );
assembly.addComponentDescriptor( componentsFilename );
final StringWriter sw = new StringWriter();
final AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer();
assemblyWriter.write( sw, assembly );
final StringReader sr = new StringReader( sw.toString() );
expect( configSource.getBasedir()).andReturn( basedir ).atLeastOnce();