@Test
public void testPublicObjecttoVXAsset(){

        Date date = new Date();
        VXAsset expectedVXAsset = new VXAsset();
        expectedVXAsset.setId(1L);
        expectedVXAsset.setCreateDate(date);
        expectedVXAsset.setUpdateDate(date);
        expectedVXAsset.setOwner("rangerAdmin");
        expectedVXAsset.setUpdatedBy("rangerAdmin");
        expectedVXAsset.setAssetType(3);
        expectedVXAsset.setActiveStatus(RangerCommonEnums.STATUS_ENABLED);
        expectedVXAsset.setName("hive");
        expectedVXAsset.setDescription("hive description");
        expectedVXAsset.setConfig("/myConfig");
        VXRepository vXRepository = new VXRepository();
        vXRepository.setId(1L);
        vXRepository.setCreateDate(date);
        vXRepository.setUpdateDate(date);
        vXRepository.setOwner("rangerAdmin");
        vXRepository.setUpdatedBy("rangerAdmin");
        vXRepository.setRepositoryType("hive");
        vXRepository.setIsActive(true);
        vXRepository.setName("hive");
        vXRepository.setDescription("hive description");
        vXRepository.setConfig("/myConfig");
        VXAsset actualVXAsset = serviceUtil.publicObjecttoVXAsset(vXRepository);
        Assert.assertNotNull(actualVXAsset);
        Assert.assertEquals(actualVXAsset.getActiveStatus(), expectedVXAsset.getActiveStatus());
        Assert.assertEquals(actualVXAsset.getId(), expectedVXAsset.getId());
        Assert.assertEquals(actualVXAsset.getName(), expectedVXAsset.getName());
        Assert.assertEquals(actualVXAsset.getDescription(), expectedVXAsset.getDescription());
        Assert.assertEquals(actualVXAsset.getCreateDate(), expectedVXAsset.getCreateDate());
        Assert.assertEquals(actualVXAsset.getOwner(), expectedVXAsset.getOwner());
        Assert.assertEquals(actualVXAsset.getAssetType() , expectedVXAsset.getAssetType());
        Assert.assertEquals(actualVXAsset.getConfig() , expectedVXAsset.getConfig());
}