@Test
public void test42getMetricByTypeaudits() throws Exception{

	String type = "audits";
	
	Date date = new Date();
	date.setYear(2018);

	Mockito.when(restErrorUtil.parseDate(Mockito.anyString(),Mockito.anyString(),
                                     Mockito.any(), Mockito.any(), Mockito.anyString(),  Mockito.anyString())).thenReturn(date);
	RangerServiceDefList svcDefList = new RangerServiceDefList();
	svcDefList.setTotalCount(10l);
	Mockito.when(serviceDefService.searchRangerServiceDefs(Mockito.any(SearchFilter.class))).thenReturn(svcDefList);
	
	
rviceDBStore.getMetricByType(type);
}