import java.util.ArrayList;
 import java.util.List;
 
+import org.junit.Before;
 import org.junit.Test;
 import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.LocalComandUtils;
 import org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.LocalComandUtils.ExeRes;
 
 public class LocalComandUtilsTest {
 
+
     @Test
-    public void testformatCommand(){
-        new MockUp<LocalComandUtils>(){
+    public void testformatCommand() {
+        new MockUp<LocalComandUtils>() {
             @Mock
-            public  String formatCommand(List<String> command){
-                return  null;
+            public String formatCommand(List<String> command) {
+                return null;
             }
         };
-        List<String> command =new ArrayList<String> ();
+        List<String> command = new ArrayList<String>();
         command.add("test1");
         command.add("test2");
-        String s=LocalComandUtils.formatCommand(command);
+        String s = LocalComandUtils.formatCommand(command);
 
 
     }
         constructor.newInstance();
     }
 
+    @Test
+    public void testExecute() {
+        LocalComandUtils.execute("/test/data", "csi");
+    }
+
+    @Test
+    public void testFormatCommand2() {
+
+        List<String> command = new ArrayList<String>();
+        command.add("test1");
+        command.add("test2");
+        LocalComandUtils.formatCommand(command);
+
+    }
+
+
+
 }
 
         ctx.setApplicationContext(context);
         contextholder.cleanApplicationContext();
 
+
+    }
+
+    @Test(expected = IllegalStateException.class)
+    public void testGetMethods()
+    {
+        SpringContextHolder.getApplicationContext();
+        SpringContextHolder.getSpringBean("huawei");
+        SpringContextHolder.getSpringBean("csi");
     }
 
 }
 
--- /dev/null
+/*
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common;
+
+import org.junit.Test;
+import org.mockito.Mock;
+
+import static org.junit.Assert.*;
+
+public class VnfmExceptionTest {
+    @Mock
+    Throwable throwable;
+
+    @Test
+    public void testConstructors()
+    {
+        VnfmException vnfmException= new VnfmException();
+        VnfmException vnfmException1= new VnfmException("huawei",null);
+        VnfmException vnfmException2= new VnfmException("huawei");
+        VnfmException vnfmException3= new VnfmException(throwable);
+    }
+
+}
\ No newline at end of file
 
--- /dev/null
+/*
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.restclient;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+public class ExceptionArgsTest {
+    ExceptionArgs exceptionArgs =new ExceptionArgs();
+    @Test
+    public void testConstructors()
+    {
+
+        ExceptionArgs exceptionArgs1 =new ExceptionArgs(null,null,null,null);
+
+    }
+    @Test
+    public void testGetterSetters()
+    {
+        exceptionArgs.setAdviceArgs(null);
+        exceptionArgs.setDescArgs(null);
+        exceptionArgs.setDetailArgs(null);
+        exceptionArgs.setReasonArgs(null);
+        exceptionArgs.getAdviceArgs();
+        exceptionArgs.getDescArgs();
+        exceptionArgs.getDetailArgs();
+        exceptionArgs.getReasonArgs();
+    }
+
+}
\ No newline at end of file
 
--- /dev/null
+/*
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.restclient;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+public class HttpRestTest {
+    HttpRest httpRest= new HttpRest();
+
+    @Test(expected = Exception.class)
+    public void testInitHttpRest() throws Exception
+    {
+        httpRest.initHttpRest(null);
+    }
+
+}
\ No newline at end of file
 
--- /dev/null
+/*
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.restclient;
+
+import org.junit.Test;
+
+public class ReaderHelperTest {
+
+    @Test
+    public void testConstructors() {
+        ReaderHelper readerHelper = new ReaderHelper(null);
+    }
+
+    @Test
+    public void testGetLine() {
+        ReaderHelper readerHelper = new ReaderHelper(null);
+        readerHelper.getLine();
+
+
+    }
+}
\ No newline at end of file
 
--- /dev/null
+/*
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.common.restclient;
+
+import org.junit.Test;
+import org.mockito.Mock;
+
+import static org.junit.Assert.*;
+
+public class ServiceExceptionTest {
+    @Mock
+    Throwable throwable;
+    @Mock
+    ExceptionArgs exceptionArgs;
+    ServiceException serviceException = new ServiceException();
+
+    @Test
+    public void testConstructors()
+    {
+        Object object= new Object();
+        ServiceException serviceException1 = new ServiceException("huawei",throwable);
+        ServiceException serviceException2 = new ServiceException("huawei");
+        ServiceException serviceException3 = new ServiceException("huawei","huawei");
+        ServiceException serviceException4 = new ServiceException("huawei",200);
+        ServiceException serviceException5 = new ServiceException(200,"huawei");
+        ServiceException serviceException6 = new ServiceException("huawei",200,exceptionArgs);
+        ServiceException serviceException7 = new ServiceException("200","huawei",object);
+        ServiceException serviceException8 = new ServiceException("200","huawei",throwable,object);
+        ServiceException serviceException9 = new ServiceException("200","huawei",throwable);
+        ServiceException serviceException10 = new ServiceException(throwable);
+
+
+    }
+    @Test
+    public void testGettermethods()
+    {
+        serviceException.getArgs();
+        serviceException.getExceptionArgs();
+        serviceException.getId();
+        serviceException.setId(null);
+        serviceException.getId();
+    }
+
+}
\ No newline at end of file
 
--- /dev/null
+/*
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.service.adapter.impl;
+
+import net.sf.json.JSONObject;
+import org.junit.Before;
+import org.junit.Test;
+import org.mockito.Mock;
+
+
+import java.util.HashMap;
+import java.util.Map;
+
+import static org.junit.Assert.*;
+
+public class JujuAdapter2DriverManagerTest {
+
+
+
+    @Test
+    public void testRegisterDriver()
+    {
+        JujuAdapter2DriverManager jujuAdapter2DriverManager =new JujuAdapter2DriverManager();
+        Map<String, String> map = new HashMap<String, String>();
+        map.put("a",  "1");
+        JSONObject json = new JSONObject();
+        json.put("sun","yellow");
+        jujuAdapter2DriverManager.registerDriver(map,json);
+
+        jujuAdapter2DriverManager.unregisterDriver(map);
+
+    }
+}
\ No newline at end of file