### Question:
NodeCacheManager { public static void saveDefinitionNode(String graphId, String objectType, Object node) { validateRequired(graphId, objectType, node, GraphCacheErrorCodes.ERR_CACHE_SAVE_DEF_NODE_ERROR.name()); String key = CacheKeyGenerator.getKey(graphId, objectType, RedisKeysEnum.DEF_NODE.name()); definitionNodeCache.put(key, node); TelemetryManager.log("Saved definition node into cache having objectType: " + objectType + " into graph: "+ graphId); }  static void saveDefinitionNode(String graphId, String objectType, Object node); static Object getDefinitionNode(String graphId, String objectType); static Object deleteDefinitionNode(String graphId, String objectType); static void saveDataNode(String graphId, String id, Object node); static Object getDataNode(String graphId, String id); static Object deleteDataNode(String graphId, String id);  }### Answer:
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutGraphId() { NodeCacheManager.saveDefinitionNode(null, "Content", "ContentDefNode"); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutObjectType() { NodeCacheManager.saveDefinitionNode("domain", null, "ContentDefNode"); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutNode() { NodeCacheManager.saveDefinitionNode("domain", "Content", null); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutGraphIdAndObjectType() { NodeCacheManager.saveDefinitionNode(null, null, "ContentDefNode"); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutGraphIdAndNode() { NodeCacheManager.saveDefinitionNode(null, "Content", null); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutNodeAndObjectType() { NodeCacheManager.saveDefinitionNode("domain", null, null); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutObjectTypeAndNode() { NodeCacheManager.saveDefinitionNode("domain",null, null); }
@Test(expected = ClientException.class) public void saveDefinitionNodeWithoutAllParams() { NodeCacheManager.saveDefinitionNode(null, null, null); }