@@ -0,0 +1,1609 @@
+%0Apackage org.jenkinsci.plugins.relution_publisher.unittest.mocks;%0A%0Aimport org.jenkinsci.plugins.relution_publisher.logging.Log;%0Aimport org.jenkinsci.plugins.relution_publisher.net.Network;%0Aimport org.jenkinsci.plugins.relution_publisher.net.requests.ApiRequest;%0Aimport org.jenkinsci.plugins.relution_publisher.net.responses.ApiResponse;%0A%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.concurrent.ExecutionException;%0A%0A%0Apublic class MockNetwork implements Network %7B%0A%0A    private static final long       serialVersionUID = 1L;%0A%0A    private int                     requestCount;%0A    private final List%3CApiResponse%3E responses        = new ArrayList%3C%3E();%0A%0A    public void add(final ApiResponse response) %7B%0A        this.responses.add(response);%0A    %7D%0A%0A    @Override%0A    public void setProxy(final String hostname, final int port) %7B%0A        // Do nothing%0A    %7D%0A%0A    @Override%0A    public void setProxyCredentials(final String username, final String password) %7B%0A        // Do nothing%0A    %7D%0A%0A    @Override%0A    public ApiResponse execute(final ApiRequest request, final Log log) throws IOException, InterruptedException, ExecutionException %7B%0A        if (this.requestCount %3E= this.responses.size()) %7B%0A            return null;%0A        %7D%0A        return this.responses.get(this.requestCount++);%0A    %7D%0A%0A    @Override%0A    public ApiResponse execute(final ApiRequest request) throws InterruptedException, ExecutionException, IOException %7B%0A        return this.execute(request, null);%0A    %7D%0A%0A    @Override%0A    public void close() throws IOException %7B%0A        // Do nothing%0A    %7D%0A%7D%0A

Add mock network implementation for unit tests