@Test
public void test53getPoliciesForResource() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	List<RangerService> rsList = new ArrayList<RangerService>();
	RangerService rs = rangerService();
	rsList.add(rs);
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyString(), (MessageEnums) Mockito.any()))
			.thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	serviceREST.getPoliciesForResource("servicedefname", "servicename", request);
}