### Question:
DecomposeJsonUtil implements Serializable { public static ConfigResource jsonToConfigResource(String jsonString) throws JsonDecomposingException { try { return OBJECT_MAPPER.readValue(jsonString, ConfigResource.class); } catch (IOException e) { throw new JsonDecomposingException("Exception while converting json to allotted resource", e); } } private  DecomposeJsonUtil(); static ServiceDecomposition jsonToServiceDecomposition(String jsonString); static ServiceDecomposition jsonToServiceDecomposition(String jsonString, String serviceInstanceId); static VnfResource jsonToVnfResource(String jsonString); static NetworkResource jsonToNetworkResource(String jsonString); static AllottedResource jsonToAllottedResource(String jsonString); static ConfigResource jsonToConfigResource(String jsonString);  }### Answer:
@Test public void testJsonToConfigResource() throws JsonDecomposingException { configResource = createConfigResourceData(); ConfigResource configResourceObj = DecomposeJsonUtil.jsonToConfigResource(configResource.toString()); assertEquals(configResource.getResourceId(), configResourceObj.getResourceId()); }
@Test public void testJsonToConfigResource_JsonDecomposingException() throws JsonDecomposingException { expectedException.expect(JsonDecomposingException.class); allottedResource = createAllottedResourceData(); ConfigResource configResourceObj = DecomposeJsonUtil.jsonToConfigResource(allottedResource.toString()); }