package lb2xp;

import static org.junit.Assert.fail;

import org.junit.Test;

public class TestMBC
{
    @Test
    public void testExpand()
    {
        fail( "Not yet implemented" );
    }
}

@@ -44,141 +44,1118 @@
 ert.
-fail;%0A%0Aimport org.junit.Test;%0A%0Apublic class TestMBC%0A%7B%0A    @Test%0A    public void testExpand()%0A    %7B%0A        fa
+assertEquals;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.PrintStream;%0Aimport java.security.MessageDigest;%0A%0Aimport org.junit.Test;%0A%0Apublic class TestMBC%0A%7B%0A    private static String md5( byte%5B%5D arr )%0A        throws Exception%0A    %7B%0A        MessageDigest md = MessageDigest.getInstance( %22MD5%22 );%0A        md.update( arr );%0A        StringBuilder sb = new StringBuilder();%0A        for ( byte c : md.digest() )%0A            sb.append( String.format( %22%2502x%22, c ) );%0A        return sb.toString();%0A    %7D%0A%0A    private void oneFile( String name, String md5 )%0A        throws Exception%0A    %7B%0A        File bzf = new F
 il
+e
 ( %22
-Not yet implemented
+test-data/%22 + name + %22.bz2%22 );%0A        System.setIn( new FileInputStream( bzf ) );%0A        ByteArrayOutputStream out = new ByteArrayOutputStream();%0A        System.setOut( new PrintStream( out ) );%0A        MBC mbc = new MBC();%0A        mbc.expand();%0A        assertEquals( md5, md5( out.toByteArray() ) );%0A    %7D%0A%0A    @Test%0A    public void testExpand()%0A        throws Exception%0A    %7B%0A        oneFile( %22concat%22, %222debfdcf79f03e4a65a667d21ef9de14
 %22 );

Add initial test case for MBC