@Test
public void test21deleteTag() {

	RangerTag oldTag = new RangerTag();
	oldTag.setId(id);
	
	try {
		Mockito.when(validator.preDeleteTag(id)).thenReturn(oldTag);
	} catch (Exception e) {
	}
	try {
		Mockito.doNothing().when(tagStore).deleteTag(id);
	} catch (Exception e) {
	}
	
	tagREST.deleteTag(id);
	Assert.assertNotNull(oldTag.getId());
	
	try {
		Mockito.verify(validator).preDeleteTag(id);
	} catch (Exception e) {
	}
	try {
		Mockito.verify(tagStore).deleteTag(id);
	} catch (Exception e) {
	}
}