@@ -0,0 +1,1000 @@
+package com.twu.biblioteca;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.StringWriter;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class BibliotecaApplicationTest %7B%0A%0A    String expectedSequence = %22Bangalore Public Library Welcomes You%5Cn%22 +%0A            %22Book name = Harry Potter And The Goblet Of Fire, Author = J K Rowling, Year of publication = 2008%5Cn%22 +%0A            %22Book name = Harry Potter And The Order Of Phoenix, Author = J K %22 +%0A            %22Rowling, Year of publication = 2012%5Cn%22;%0A%0A    @Test%0A    public void shouldTestTheSequenceOfInput() %7B%0A%0A        final StringWriter stringWriter = new StringWriter();%0A        OutputWriter outputWriter = new OutputWriter(stringWriter);%0A        Biblioteca biblioteca = new Biblioteca(outputWriter);%0A        BibliotecaApplication application = new BibliotecaApplication(biblioteca);%0A%0A        application.run();%0A%0A        final StringBuffer stringBuffer = stringWriter.getBuffer();%0A        assertEquals(expectedSequence,stringBuffer.toString());%0A    %7D%0A%7D%0A

Test the sequence of messages displayed to user