@Test(expected = ApplicationException.class)
public void testDup() {

	WorkflowDef def = new WorkflowDef();
	def.setName("testDup");
	def.setVersion(1);
	
	redisMetadataDAO.createWorkflowDef(def);
	redisMetadataDAO.createWorkflowDef(def);
}