@Test
public void test19createTag(){

	RangerTag oldTag = new RangerTag();
	oldTag.setId(id);
	
	try {
		Mockito.when(validator.preCreateTag(oldTag)).thenReturn(oldTag);
	} catch (Exception e) {
	}
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyInt(), Mockito.anyString(), Mockito.anyBoolean())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	tagREST.createTag(oldTag,false);
	
	try {
		Mockito.verify(validator).preCreateTag(oldTag);
	} catch (Exception e) {
	}
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyInt(), Mockito.anyString(), Mockito.anyBoolean());
}