@Test
public void test9getTagDefsByServiceId(){

	List<XXTagDef> xxTagDefs = new ArrayList<XXTagDef>();

	XXTagDefDao xXTagDefDao = Mockito.mock(XXTagDefDao.class);
	Mockito.when(daoMgr.getXXTagDef()).thenReturn(xXTagDefDao);
	Mockito.when(xXTagDefDao.findByServiceId(serviceId)).thenReturn(xxTagDefs);
	
	List<RangerTagDef> result = rangerTagDefService.getTagDefsByServiceId(serviceId);
	Assert.assertNotNull(result);
	
	Mockito.verify(daoMgr).getXXTagDef();
	Mockito.verify(xXTagDefDao).findByServiceId(serviceId);
}