001    package org.picocontainer.containers;
002    
003    import static org.junit.Assert.assertSame;
004    
005    import org.junit.Test;
006    
007    /**
008     * test capabilities of system properties providing container. 
009     * @author k.pribluda
010     *
011     */
012    public class SystemPropertiesPicoContainerTestCase {
013    
014            
015            /**
016             * all the content of system properties shall be made available
017             *  through this contaienr. 
018             */
019            @Test public void testThatAllSystemPropertiesAreCopied() {
020                    SystemPropertiesPicoContainer container = new SystemPropertiesPicoContainer();          
021                    for(Object key: System.getProperties().keySet()) {
022                            assertSame(System.getProperties().get(key),container.getComponent(key));
023                    }
024            }
025    }