@Test
public void test38createTagResourceMap() {

	RangerTagResourceMap oldTagResourceMap = null;
	RangerTagResourceMap newTagResourceMap = new RangerTagResourceMap();
	newTagResourceMap.setTagId(id);
	newTagResourceMap.setResourceId(id);
	
	try {
		Mockito.when(tagStore.getTagResourceMapForTagAndResourceGuid(tagGuid, resourceGuid)).thenReturn(oldTagResourceMap);
	} catch (Exception e) {
	}
	try {
		Mockito.when(validator.preCreateTagResourceMap(tagGuid, resourceGuid)).thenReturn(newTagResourceMap);
	} catch (Exception e) {
	}
	try {
		Mockito.when(tagStore.createTagResourceMap(newTagResourceMap)).thenReturn(newTagResourceMap);
	} catch (Exception e) {
	}
	
	RangerTagResourceMap rangerTagResourceMap = tagREST.createTagResourceMap(tagGuid, resourceGuid, false);
	Assert.assertEquals(rangerTagResourceMap.getTagId(), newTagResourceMap.getTagId());
	Assert.assertEquals(rangerTagResourceMap.getResourceId(), newTagResourceMap.getResourceId());
	
	try {
		Mockito.verify(tagStore).getTagResourceMapForTagAndResourceGuid(tagGuid, resourceGuid);
	} catch (Exception e) {
	}
	try {
		Mockito.verify(validator).preCreateTagResourceMap(tagGuid, resourceGuid);
	} catch (Exception e) {
	}
	try {
		Mockito.verify(tagStore).createTagResourceMap(newTagResourceMap);
	} catch (Exception e) {
	}
}