Add test for missing code covereage
[cps.git] / cps-ncmp-service / src / test / groovy / org / onap / cps / ncmp / api / impl / JsonUtilsSpec.groovy
index 2b3d998..be27dfa 100644 (file)
@@ -40,5 +40,12 @@ class JsonUtilsSpec extends Specification  {
             'a string in apostrophes'          | "'abc'"  || 'abc'
             'a string inside any other tokens' | 'abcde'  || 'bcd'
     }
+
+    def 'Cannot use constructor.'() {
+        when: 'attempt to construct object'
+            new JsonUtils()
+        then: 'an exception is thrown'
+            thrown(IllegalStateException)
+    }
 }