@@ -0,0 +1,1416 @@
+package org.tmurakam.android.emufix;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0A%0Aimport static junit.framework.TestCase.assertEquals;%0A%0A/**%0A * ServerResponse Forwarder Test%0A */%0Apublic class ServerResponseForwarderTest %7B%0A    @Test%0A    public void testConnect() throws Exception %7B%0A        StringBuilder sb = new StringBuilder();%0A        sb.append(%22HTTP/1.1 200 OK%5Cr%5Cn%22);%0A        sb.append(%22Server: dummy%5Cr%5Cn%22);%0A        sb.append(%22%5Cr%5Cn%22);%0A        sb.append(%22Content%22);%0A%0A        ByteArrayInputStream in = new ByteArrayInputStream(sb.toString().getBytes(%22UTF-8%22));%0A        ByteArrayOutputStream out = new ByteArrayOutputStream();%0A%0A        new ServerResponseForwarder(in, out, true).forward();%0A%0A        String os = out.toString(%22UTF-8%22);%0A        assertEquals(%22HTTP/1.1 200 OK%5Cr%5Cn%5Cr%5CnContent%22, os);%0A    %7D%0A%0A    @Test%0A    public void testNormal() throws Exception %7B%0A        StringBuilder sb = new StringBuilder();%0A        sb.append(%22HTTP/1.1 200 OK%5Cr%5Cn%22);%0A        sb.append(%22Server: dummy%5Cr%5Cn%22);%0A        sb.append(%22%5Cr%5Cn%22);%0A        sb.append(%22Content%22);%0A%0A        ByteArrayInputStream in = new ByteArrayInputStream(sb.toString().getBytes(%22UTF-8%22));%0A        ByteArrayOutputStream out = new ByteArrayOutputStream();%0A%0A        new ServerResponseForwarder(in, out, false).forward();%0A%0A        String os = out.toString(%22UTF-8%22);%0A        assertEquals(sb.toString(), os);%0A    %7D%0A%7D%0A

add test