package com.twu.biblioteca;


import org.junit.Test;
import static org.junit.Assert.assertEquals;

public class ExampleTest {

    @Test
    public void test() {
        assertEquals(1, 1);
    }
}

@@ -44,148 +44,647 @@
 nit.
-Test;%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ExampleTest %7B%0A%0A    @Test%0A    public void test() %7B%0A        assertEquals(1, 1
+After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ExampleTest %7B%0A%0A    private ByteArrayOutputStream outStream = new ByteArrayOutputStream();%0A%0A    @Before%0A    public void setupStreams() %7B%0A        System.setOut(new PrintStream(outStream));%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B%0A        System.setOut(null);%0A    %7D%0A%0A    @Test%0A    public void testWelcomeMessage() %7B%0A        String expected = %22Welcome to Biblioteca.%5Cn%22;%0A        BibliotecaApp.main(null);%0A        assertEquals(expected, outStream.toString()
 );%0A 

Test for welcome message (failing)