@Test
public void test1createTagDef() {

	RangerTagDef oldTagDef = null;
	RangerTagDef newTagDef = new RangerTagDef();
	newTagDef.setId(id);
	newTagDef.setName(name);
	try {
		Mockito.when(validator.preCreateTagDef(oldTagDef, false)).thenReturn(null);
	} catch (Exception e) {
	}
	try {
		Mockito.when(tagStore.createTagDef(oldTagDef)).thenReturn(newTagDef);
	} catch (Exception e) {
	}
	RangerTagDef rangerTagDef = tagREST.createTagDef(oldTagDef, false);
	Assert.assertEquals(rangerTagDef.getId(), newTagDef.getId());
	Assert.assertNotNull(rangerTagDef);
	Assert.assertEquals(rangerTagDef.getName(), newTagDef.getName());
	try {
		Mockito.verify(validator).preCreateTagDef(oldTagDef, false);
	} catch (Exception e) {
	}
	try {
		Mockito.verify(tagStore).createTagDef(oldTagDef);
	} catch (Exception e) {
	}
}