@@ -0,0 +1,1694 @@
+package titan.client;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.IsEqual.equalTo;%0A%0Apublic class TitanTest %7B%0A    public static final String URL = %22ws://127.0.0.1:3000%22;%0A%0A    @Test%0A    public void emailValidator_CorrectEmailSimple_ReturnsTrue() %7B%0A        assertThat(%22hazelnuts%22, 3, equalTo(3));%0A    %7D%0A%0A    @Test%0A    public void connect() %7B%0A        if (isTravis()) %7B%0A            return;%0A        %7D%0A%0A        class Test %7B%0A            final String message;%0A%0A            Test(String message) %7B%0A                this.message = message;%0A            %7D%0A        %7D%0A%0A        Conn conn = new ConnImpl(URL);%0A        conn.connect();%0A%0A        try %7B%0A            Thread.sleep(1000);%0A        %7D catch (InterruptedException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        assertThat(%22Connection was not established in time.%22, conn.isConnected());%0A%0A        // todo: add middleware to log the incoming message here and replace logger inside response handler with verifier%0A        // and release v0.1 corresponding to Neptulon v0.1%0A%0A        conn.middleware(new Middleware() %7B%0A            @Override%0A            public void handler(ReqCtx req) %7B%0A%0A            %7D%0A        %7D);%0A%0A        conn.sendRequest(%22test%22, new Test(%22wow%22), new ResHandler%3CString%3E() %7B%0A            @Override%0A            public Class%3CString%3E getType() %7B%0A                return String.class;%0A            %7D%0A%0A            @Override%0A            public void handler(Response%3CString%3E res) %7B%0A                System.out.println(%22Received response: %22 + res.result);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    private boolean isTravis() %7B%0A        return System.getenv().containsKey(%22TRAVIS%22);%0A    %7D%0A%7D%0A

add titan jvm test