package springcourse.exercises.exercise2;

import org.junit.Assert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Amit Tal
 * @since 3/24/14
 */
public class Main {

    private static Logger logger = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        // TODO Use AnnotationConfigApplicationContext in order to create a spring container

        // TODO Retrieve "libraryA" from the container and call close method
        // TODO Retrieve the "libA" from the container
        // TODO Verify that the two beans are actually the same bean (use org.junit.Assert.assertEquals method)

        // TODO Retrieve the "libraryB" from the container and call close method
        // TODO Retrieve the "libB" from the container
        // TODO Verify that the two beans are actually the same bean (may use org.junit.Assert.assertEquals method)

        // TODO Verify that libraryA and LibraryB are NOT the same bean (may use org.junit.Assert.assertNotEquals method);
    }
}

@@ -1019,16 +1019,604 @@
 ethod);%0A
+        %0A        // TODO Retrieve %22prototypeLibrary%22 bean from the container%0A        // TODO Retrieve another %22prototypeLibrary%22 bean from the container%0A        // TODO Verify that the two prototype beans are NOT the same bean (use org.junit.Assert.assertNotEquals method)%0A        // TODO Verify that the two prototype beans are NOT the same as %22libraryA%22 or %22libraryB%22%0A%0A        // TODO From each prototype bean fetch it's inner BookDao (add a getter inside Library code)%0A        // TODO and verify that both BookDaos are actually the same bean (use org.junit.Assert.assertEquals method)%0A
     %7D%0A%7D%0A

Update Main.java