import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.argThat;
import static org.mockito.Matchers.eq;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.argThat;
import static org.mockito.Matchers.eq;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.onap.policy.common.endpoints.event.comm.bus.internal.BusTopicParams;
import org.onap.policy.common.parameters.ParameterGroup;
import org.onap.policy.common.endpoints.event.comm.bus.internal.BusTopicParams;
import org.onap.policy.common.parameters.ParameterGroup;
import org.onap.policy.distribution.forwarding.xacml.pdp.XacmlPdpArtifactForwarder;
import org.onap.policy.distribution.forwarding.xacml.pdp.XacmlPdpArtifactForwarderParameterGroup.XacmlPdpArtifactForwarderParameterGroupBuilder;
import org.onap.policy.distribution.main.PolicyDistributionException;
import org.onap.policy.distribution.forwarding.xacml.pdp.XacmlPdpArtifactForwarder;
import org.onap.policy.distribution.forwarding.xacml.pdp.XacmlPdpArtifactForwarderParameterGroup.XacmlPdpArtifactForwarderParameterGroupBuilder;
import org.onap.policy.distribution.main.PolicyDistributionException;
import org.onap.policy.distribution.model.GsonUtil;
import org.onap.policy.distribution.model.Policy;
import org.onap.policy.distribution.model.GsonUtil;
import org.onap.policy.distribution.model.Policy;
import org.onap.policy.distribution.model.VfModuleModel;
import org.onap.sdc.api.notification.IArtifactInfo;
import org.onap.policy.distribution.model.VfModuleModel;
import org.onap.sdc.api.notification.IArtifactInfo;
String data = new String(Files.readAllBytes(Paths.get("src/test/resource/modules.json")));
Type type = new TypeToken<ArrayList<VfModuleModel>>() {}.getType();
Gson gson = new Gson();
String data = new String(Files.readAllBytes(Paths.get("src/test/resource/modules.json")));
Type type = new TypeToken<ArrayList<VfModuleModel>>() {}.getType();
Gson gson = new Gson();
//vfModuleModels= GsonUtil.parseJsonArrayWithGson(data, VfModuleModel.class);
assertEquals(4, vfModuleModels.size());
//vfModuleModels= GsonUtil.parseJsonArrayWithGson(data, VfModuleModel.class);
assertEquals(4, vfModuleModels.size());
private IArtifactInfo generatedArtifact;
private List<String> relatedArtifacts;
private List<IArtifactInfo> relatedArtifactsInfo;
private IArtifactInfo generatedArtifact;
private List<String> relatedArtifacts;
private List<IArtifactInfo> relatedArtifactsInfo;
private List<String> fillRelatedArtifactsUUID(List<IArtifactInfo> relatedArtifactsInfo) {
List<String> relatedArtifactsUUID = null;
private List<String> fillRelatedArtifactsUUID(List<IArtifactInfo> relatedArtifactsInfo) {
List<String> relatedArtifactsUUID = null;