Replaced test mock with existing adapter in archetypes.

Change-Id: I85ae00a5d30ccd0ca49b38e627ca73497a4bf6b7
diff --git a/tools/package/archetypes/bundle/src/main/resources/archetype-resources/src/test/java/AppComponentTest.java b/tools/package/archetypes/bundle/src/main/resources/archetype-resources/src/test/java/AppComponentTest.java
index 0267613..05e712d 100644
--- a/tools/package/archetypes/bundle/src/main/resources/archetype-resources/src/test/java/AppComponentTest.java
+++ b/tools/package/archetypes/bundle/src/main/resources/archetype-resources/src/test/java/AppComponentTest.java
@@ -22,6 +22,7 @@
 import org.junit.Before;
 import org.junit.Test;
 import org.onosproject.cfg.ComponentConfigService;
+import org.onosproject.cfg.ComponentConfigAdapter;
 import org.onosproject.cfg.ConfigProperty;
 
 import java.util.Set;
@@ -36,7 +37,7 @@
     @Before
     public void setUp() {
         component = new AppComponent();
-        component.cfgService = new TestComponentConfigService();
+        component.cfgService = new ComponentConfigAdapter();
         component.activate();
     }
 
@@ -50,46 +51,4 @@
 
     }
 
-    private class TestComponentConfigService implements ComponentConfigService {
-        @Override
-        public Set<String> getComponentNames() {
-            return null;
-        }
-
-        @Override
-        public void registerProperties(Class<?> componentClass) {
-
-        }
-
-        @Override
-        public void unregisterProperties(Class<?> componentClass, boolean clear) {
-
-        }
-
-        @Override
-        public Set<ConfigProperty> getProperties(String componentName) {
-            return null;
-        }
-
-        @Override
-        public void setProperty(String componentName, String name, String value) {
-
-        }
-
-        @Override
-        public void preSetProperty(String componentName, String name, String value) {
-
-        }
-
-        @Override
-        public void unsetProperty(String componentName, String name) {
-
-        }
-
-        @Override
-        public ConfigProperty getProperty(String componentName, String attribute) {
-            return null;
-        }
-    }
-
 }