package org.arquillian.cube.example.mockcontainer;

import java.net.Socket;

import org.arquillian.cube.HostIp;
import org.arquillian.cube.docker.impl.util.IOUtil;
import org.jboss.arquillian.junit.Arquillian;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Arquillian.class)
public class MockContainerTestCase {

    @HostIp
    private String hostIp;
    
    @Test
    public void shouldMockGoogleCom() throws Exception {
        Socket socket = new Socket(hostIp, 8085);
        String response = IOUtil.asString(socket.getInputStream());

        socket.close();
        
        System.out.println(response);
        Assert.assertEquals("INTERCEPTED", response);
    }
}

@@ -676,13 +676,29 @@
 sert
-Equal
+True(response.contain
 s(%22I
@@ -712,18 +712,9 @@
 TED%22
-, response
+)
 );%0A 

Use Contains string Assertion