@Test
public void testGetServiceByName() throws Exception{

        RangerService expectedRangerService = new RangerService();
        expectedRangerService.setId(1L);
        expectedRangerService.setName("hdfs");
        Mockito.when(svcStore.getServiceByName("hdfs")).thenReturn(expectedRangerService);
        RangerService actualRangerService = serviceUtil.getServiceByName("hdfs");
        Assert.assertEquals(expectedRangerService.getName(), actualRangerService.getName());
        Assert.assertEquals(expectedRangerService.getId(), actualRangerService.getId());
}