@@ -0,0 +1,3117 @@
+/*******************************************************************************%0A * Copyright (c) 2016 IBM Corp.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *******************************************************************************/%0Apackage com.ibm.liberty.starter.it.api.v1;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.io.File;%0Aimport java.io.InputStream;%0Aimport java.util.zip.ZipEntry;%0Aimport java.util.zip.ZipInputStream;%0A%0Aimport javax.ws.rs.client.Client;%0Aimport javax.ws.rs.client.ClientBuilder;%0Aimport javax.ws.rs.core.Response;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class MicroProfileAPIJarDownloadTest %7B%0A%0A    @Test%0A    public void testRepoUrl() throws Exception %7B%0A        String url = %22http://localhost:%22 + System.getProperty(%22liberty.test.port%22) + %22/start/api/v1/repo/net/wasdev/wlp/starters/ms-builder/config/0.0.1/config-0.0.1.jar%22;%0A        Client client = ClientBuilder.newClient();%0A        Response response = client.target(url).request(%22application/zip%22).get();%0A        try %7B%0A            int responseStatus = response.getStatus();%0A            if (responseStatus != 200) %7B%0A                Assert.fail(%22Expected response status 200, instead found %22 + responseStatus + %22. Response was %22 + response.readEntity(String.class));%0A            %7D%0A            assertTrue(%22Config class not found%22, findConfig(response));%0A        %7D finally %7B%0A            response.close();%0A        %7D%0A%0A    %7D%0A%0A    private boolean findConfig(Response resp) throws Exception %7B%0A        // Read the response into an InputStream%0A        InputStream entityInputStream = resp.readEntity(InputStream.class);%0A        // Create a new ZipInputStream from the response InputStream%0A        ZipInputStream zipIn = new ZipInputStream(entityInputStream);%0A        // This system property is being set in the liberty-starter-application/build.gradle file%0A        String tempDir = System.getProperty(%22liberty.temp.dir%22);%0A        File file = new File(tempDir + %22/config.jar%22);%0A        System.out.println(%22Creating zip file: %22 + file.toString());%0A        file.getParentFile().mkdirs();%0A        ZipEntry inputEntry = null;%0A        boolean found = false;%0A        while ((inputEntry = zipIn.getNextEntry()) != null) %7B%0A            String entryName = inputEntry.getName();%0A            System.out.println(%22File: %22+entryName);%0A            if (%22org/eclipse/microprofile/config/Config.class%22.equals(entryName)) %7B%0A                System.out.println(%22Found Config.class file.%22);%0A                found = true;%0A            %7D%0A            zipIn.closeEntry();%0A        %7D%0A        zipIn.close();%0A        return found;%0A    %7D%0A%7D%0A

Add integration test for jar files.