@Test
public void test17createTag() {

	RangerTag oldTag = null;
	RangerTag newTag = new RangerTag();
	newTag.setId(id);
	newTag.setGuid(gId);
	
	try {
		Mockito.when(validator.preCreateTag(oldTag)).thenReturn(oldTag);
	} catch (Exception e) {
	}
	try {
		Mockito.when(tagStore.createTag(oldTag)).thenReturn(newTag);
	} catch (Exception e) {
	}
	RangerTag rangerTag = tagREST.createTag(oldTag, false);
	
	Assert.assertEquals(rangerTag.getId(),newTag.getId());
	Assert.assertEquals(rangerTag.getGuid(), newTag.getGuid());
	
	try {
		Mockito.verify(validator).preCreateTag(oldTag);
	} catch (Exception e) {
	}
	try {
		Mockito.verify(tagStore).createTag(oldTag);
	} catch (Exception e) {
	}
}