* See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertTrue;
 
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Modifier;
 
+import org.apache.http.HttpResponse;
+import org.apache.http.ProtocolVersion;
+import org.apache.http.StatusLine;
+import org.apache.http.message.BasicHttpResponse;
+import org.apache.http.message.BasicStatusLine;
 import org.junit.Test;
-import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.DownloadCsarManager;
 
 public class DownloadCsarManagerTest {
+
     DownloadCsarManager mgr;
+
     @Test
     public void test() {
-        String url="";
-        String filepath="";
+        String url = "";
+        String filepath = "";
         mgr.download(url);
         mgr.download(url, filepath);
         mgr.getRandomFileName();
     }
+
     @Test
     public void testPrivateConstructor() throws Exception {
         Constructor constructor = DownloadCsarManager.class.getDeclaredConstructor();
         constructor.setAccessible(true);
         constructor.newInstance();
     }
+
+    @Test
+    public void getFileNameTest() {
+        ProtocolVersion version = new ProtocolVersion("HTTP", 1, 1);
+        StatusLine sl = new BasicStatusLine(version, 200, "success");
+        HttpResponse response = new BasicHttpResponse(sl);
+        response.setHeader("Content-Disposition", "filename");
+        DownloadCsarManager.getFileName(response);
+    }
+
+    @Test
+    public void downloadTest() {
+        DownloadCsarManager.download("http://www.baidu.com");
+        DownloadCsarManager.download("http://www.baidu.com", "/opt");
+        DownloadCsarManager.getRandomFileName();
+    }
+
+    @Test
+    public void getFilePath() {
+        ProtocolVersion version = new ProtocolVersion("HTTP", 1, 1);
+        StatusLine sl = new BasicStatusLine(version, 200, "success");
+        HttpResponse response = new BasicHttpResponse(sl);
+        response.setHeader("Content-Disposition", "filename");
+        DownloadCsarManager.getFilePath(response);
+    }
+
+    @Test
+    public void testUnzip() {
+        DownloadCsarManager.unzipCSAR("test.zip", "/opt");
+    }
+
 }
 
 
 import org.junit.Before;
 import org.junit.Test;
-import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.YamlUtil;
 import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.restclient.ServiceException;
 import org.yaml.snakeyaml.Yaml;
 
 import net.sf.json.JSON;
 
 public class YamlUtilTest {
+
     YamlUtil yaml;
 
     @Before
     @Test
     public void test() throws ServiceException {
         String yamlName = "src/test/resources/test.yaml";
+        String arrayName = "src/test/resources/testArray.yaml";
+        JSON json = yaml.yamlToJson(yamlName);
+        yaml.yamlToJson(arrayName);
+        String S = yaml.loadYaml(yamlName);
+        Yaml yaml = new Yaml();
+        File file = new File(yamlName);
+    }
 
-        JSON json=yaml.yamlToJson(yamlName);
-
-        String S=yaml.loadYaml(yamlName);
-          Yaml yaml = new Yaml();
-          File file =new File(yamlName);
+    @Test
+    public void testFileNotFoundException() throws ServiceException {
+        yaml.yamlToJson("src/test/resources/abc.yaml");
+        yaml.loadYaml("src/test/resources/abc.yaml");
     }
 
 }