@Test
public void test29createServiceResource(){

	RangerServiceResource oldRSR = new RangerServiceResource();
	
	try {
		Mockito.when(validator.preCreateServiceResource(oldRSR)).thenReturn(oldRSR);
	} catch (Exception e) {
	}
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyInt(), Mockito.anyString(), Mockito.anyBoolean())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	tagREST.createServiceResource(oldRSR, false);
	
	try {
		Mockito.verify(validator).preCreateServiceResource(oldRSR);
	} catch (Exception e) {
	}
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyInt(), Mockito.anyString(), Mockito.anyBoolean());
}