@Test
public void testToRangerService(){

        Map<String, String> map = new HashMap<String, String>();
        RangerService expectedRangerService = new RangerService();
        expectedRangerService.setId(1L);
        expectedRangerService.setName("hive");
        expectedRangerService.setDescription("hive Description");
        map.put("config", "hiveConfig");
        VXAsset vXAsset = new VXAsset();
        vXAsset.setId(1L);
        vXAsset.setCreateDate(new Date());
        vXAsset.setUpdateDate(new Date());
        vXAsset.setOwner("ranger");
        vXAsset.setUpdatedBy("rangerAdmin");
        vXAsset.setAssetType(5);
        vXAsset.setName("hive");
        vXAsset.setDescription("hive Description");
        vXAsset.setActiveStatus(1);
        vXAsset.setConfig("{config : hiveConfig}");
        Mockito.when(jsonUtil.jsonToMap("{config : hiveConfig}")).thenReturn(map);
        RangerService actualRangerService = serviceUtil.toRangerService(vXAsset);
        Assert.assertNotNull(actualRangerService);
        Assert.assertEquals(actualRangerService.getId(), expectedRangerService.getId());
        Assert.assertEquals(actualRangerService.getName(), expectedRangerService.getName());
        Assert.assertEquals(actualRangerService.getDescription(), expectedRangerService.getDescription());
        Assert.assertTrue(actualRangerService.getIsEnabled());
}