unit test and fix for mode switch

Change-Id: I6585adb2857a0ed16ceae605a7f763318c946136
diff --git a/app/src/test/resources/3 b/app/src/test/resources/3
new file mode 100644
index 0000000..a25567f
--- /dev/null
+++ b/app/src/test/resources/3
@@ -0,0 +1,13 @@
+{
+      "id": "3",
+      "cTag": 7,
+      "sTag": 8,
+      "nasPortId": "1/1/2",
+      "port": 130,
+      "slot": 7,
+      "hardwareIdentifier": "ff:aa:dd:cc:bb:ee",
+      "ipAddress":"30.30.30.30",
+      "nasId":"MNO-NASID",
+      "circuitId":"circuit567",
+      "remoteId":"remote567"
+}
diff --git a/app/src/test/resources/4 b/app/src/test/resources/4
new file mode 100644
index 0000000..2a8ee5c
--- /dev/null
+++ b/app/src/test/resources/4
@@ -0,0 +1,13 @@
+{
+      "id": "4",
+      "cTag": 2,
+      "sTag": 1,
+      "nasPortId": "1/1/2",
+      "port": 132,
+      "slot": 1,
+      "hardwareIdentifier": "ff:cc:dd:aa:ee:bb",
+      "ipAddress":"15.15.15.15",
+      "nasId":"PQR-NASID",
+      "circuitId":"circuit678",
+      "remoteId":"remote678"
+}
diff --git a/app/src/test/resources/config.json b/app/src/test/resources/LocalConfig.json
similarity index 90%
rename from app/src/test/resources/config.json
rename to app/src/test/resources/LocalConfig.json
index c6b8f37..b855239 100644
--- a/app/src/test/resources/config.json
+++ b/app/src/test/resources/LocalConfig.json
@@ -1,7 +1,6 @@
 {
 	"integration":
 	{
-		"url": "http://localhost:8090",
 		"cache":
 		{
 			"enabled": true,
@@ -37,7 +36,7 @@
 			"ipAddress":"1.1.1.1",
 			"nasId":"YYY-NASID",
 			"circuitId":"circuit234",
-                        "remoteId":"remote234"
+			"remoteId":"remote234"
 		},
 
 		{
diff --git a/app/src/test/resources/RemoteConfig.json b/app/src/test/resources/RemoteConfig.json
new file mode 100644
index 0000000..50715ff
--- /dev/null
+++ b/app/src/test/resources/RemoteConfig.json
@@ -0,0 +1,10 @@
+{
+  "integration": {
+    "url": "file:src/test/resources",
+    "cache": {
+      "enabled": true,
+      "maxsize": 50,
+      "ttl": "PT1m"
+    }
+  }
+}