@Test
public void test39createTagResourceMap() {

	RangerTagResourceMap oldTagResourceMap = new RangerTagResourceMap();
	
	try {
		Mockito.when(tagStore.getTagResourceMapForTagAndResourceGuid(tagGuid, resourceGuid)).thenReturn(oldTagResourceMap);
	} catch (Exception e) {
	}
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyInt(),Mockito.anyString(), Mockito.anyBoolean())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	tagREST.createTagResourceMap(tagGuid, resourceGuid, false);
	
	try {
		Mockito.verify(tagStore).getTagResourceMapForTagAndResourceGuid(tagGuid, resourceGuid);
	} catch (Exception e) {
	}
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyInt(),Mockito.anyString(), Mockito.anyBoolean());
}