@Test
public void test3searchServiceDefs() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	List<RangerServiceDef> serviceDefsList = new ArrayList<RangerServiceDef>();
	RangerServiceDef serviceDef = rangerServiceDef();
	serviceDefsList.add(serviceDef);
	RangerServiceDefList serviceDefList = new RangerServiceDefList(serviceDefsList);
	Mockito.when(serviceREST.getServiceDefs(request)).thenReturn(serviceDefList);
	List<RangerServiceDef> dbRangerServiceDefList = publicAPIsv2.searchServiceDefs(request);
	Assert.assertNotNull(dbRangerServiceDefList);
	Assert.assertEquals(dbRangerServiceDefList.size(), serviceDefsList.size());
	Mockito.verify(serviceREST).getServiceDefs(request);
}