@Test
public void test10getTagDefByGuid() {

	RangerTagDef oldTagDef = new RangerTagDef();
	oldTagDef.setId(id);
	oldTagDef.setGuid(gId);
	
	try {
		Mockito.when(tagStore.getTagDefByGuid(gId)).thenReturn(oldTagDef);
	} catch (Exception e) {
	}
	
	RangerTagDef rangerTagDef = tagREST.getTagDefByGuid(gId);
	Assert.assertNotNull(oldTagDef.getGuid());
	Assert.assertEquals(rangerTagDef.getGuid(), oldTagDef.getGuid());
	Assert.assertEquals(rangerTagDef.getId(), oldTagDef.getId());
	
	try {
		Mockito.verify(tagStore).getTagDefByGuid(gId);
	} catch (Exception e) {
	}
}