public void testMergeComponentWithAssembly_ShouldAddOneContainerDescriptorHandlerToExistingListOfTwo()
{
final Assembly assembly = new Assembly();
ContainerDescriptorHandlerConfig cfg = new ContainerDescriptorHandlerConfig();
cfg.setHandlerName( "one" );
assembly.addContainerDescriptorHandler( cfg );
cfg = new ContainerDescriptorHandlerConfig();
cfg.setHandlerName( "two" );
assembly.addContainerDescriptorHandler( cfg );
final Component component = new Component();
cfg = new ContainerDescriptorHandlerConfig();
cfg.setHandlerName( "three" );
component.addContainerDescriptorHandler( cfg );
new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly );