@Test
public void test3deleteServiceDef() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	RangerServiceDef rangerServiceDef = rangerServiceDef();
	XXServiceDef xServiceDef = serviceDef();
	XXServiceDefDao xServiceDefDao = Mockito.mock(XXServiceDefDao.class);
	Mockito.when(validatorFactory.getServiceDefValidator(svcStore))
			.thenReturn(serviceDefValidator);
	Mockito.when(daoManager.getXXServiceDef()).thenReturn(xServiceDefDao);
	Mockito.when(xServiceDefDao.getById(Id)).thenReturn(xServiceDef);
	serviceREST.deleteServiceDef(rangerServiceDef.getId(), request);
	Mockito.verify(validatorFactory).getServiceDefValidator(svcStore);
	Mockito.verify(daoManager).getXXServiceDef();
}