package org.jboss.da.test.communication;

import static org.junit.Assert.assertTrue;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.da.communication.CommunicationException;
import org.jboss.da.communication.aprox.api.AproxConnector;
import org.jboss.da.communication.model.GA;
import org.jboss.da.test.AbstractArquillianTest;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.junit.Test;
import org.junit.runner.RunWith;

import javax.inject.Inject;

import java.util.Arrays;
import java.util.List;

@RunWith(Arquillian.class)
public class AproxTest {

    @Inject
    AproxConnector aproxConnector;

    @Deployment
    public static EnterpriseArchive createDeployment() {
        return AbstractArquillianTest.createDeployment();
    }

    @Test
    public void testGetVersionsOfGA() throws CommunicationException {
        GA ga = new GA("org.jboss.apiviz", "apiviz");
        List<String> apivizTest = Arrays.asList(new String[] { "1.3.1.GA-redhat-1", "1.2.5.GA",
                "1.3.0.GA", "1.3.1.GA-redhat-2", "1.3.2.GA" });
        List<String> result = aproxConnector.getVersionsOfGA(ga);
        assertTrue(apivizTest.size() == result.size());
        assertTrue(apivizTest.containsAll(result));
        assertTrue(result.containsAll(apivizTest));
    }

}

package org.jboss.da.test.communication;

import static org.junit.Assert.assertTrue;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.da.communication.CommunicationException;
import org.jboss.da.communication.aprox.api.AproxConnector;
import org.jboss.da.communication.model.GA;
import org.jboss.da.test.AbstractArquillianTest;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.junit.Test;
import org.junit.runner.RunWith;

import javax.inject.Inject;

import java.util.Arrays;
import java.util.List;

@RunWith(Arquillian.class)
public class AproxTest {

    @Inject
    AproxConnector aproxConnector;

    @Deployment
    public static EnterpriseArchive createDeployment() {
        return AbstractArquillianTest.createDeployment();
    }

    @Test
    public void testGetVersionsOfGA() throws CommunicationException {
        GA ga = new GA("org.jboss.ballroom", "ballroom");
        List<String> ballroomTest = Arrays.asList(new String[] { "1.3.0.Final-redhat-1",
                "1.4.0.Final-redhat-1", "1.6.0.Final-redhat-1" });
        List<String> result = aproxConnector.getVersionsOfGA(ga);
        assertTrue(result.size() > 0);
        // future releases might make the size of result to be bigger
        assertTrue(ballroomTest.size() <= result.size());
        assertTrue(result.containsAll(ballroomTest));
    }

}

Change artifact to check for version in test