@Test
public void testVXAssetToPublicObject(){

        Date date = new Date();
        VXRepository expectedVXRepository = new VXRepository();
        expectedVXRepository.setId(1L);
        expectedVXRepository.setCreateDate(date);
        expectedVXRepository.setUpdateDate(date);
        expectedVXRepository.setOwner("rangerAdmin");
        expectedVXRepository.setUpdatedBy("rangerAdmin");
        expectedVXRepository.setRepositoryType("hive");
        expectedVXRepository.setIsActive(true);
        expectedVXRepository.setName("hive");
        expectedVXRepository.setDescription("hive description");
        expectedVXRepository.setConfig("/myConfig");
        VXAsset vXAsset = new VXAsset();
        vXAsset.setId(1L);
        vXAsset.setCreateDate(date);
        vXAsset.setUpdateDate(date);
        vXAsset.setOwner("rangerAdmin");
        vXAsset.setUpdatedBy("rangerAdmin");
        vXAsset.setAssetType(3);
        vXAsset.setActiveStatus(RangerCommonEnums.STATUS_ENABLED);
        vXAsset.setName("hive");
        vXAsset.setDescription("hive description");
        vXAsset.setConfig("/myConfig");
        VXRepository actualVXRepository = serviceUtil.vXAssetToPublicObject(vXAsset);
        Assert.assertNotNull(actualVXRepository);
        Assert.assertEquals(expectedVXRepository.getId(), actualVXRepository.getId());
        Assert.assertEquals(expectedVXRepository.getName(), actualVXRepository.getName());
        Assert.assertEquals(expectedVXRepository.getDescription(), actualVXRepository.getDescription());
        Assert.assertTrue(actualVXRepository.getIsActive());
        Assert.assertEquals(expectedVXRepository.getCreateDate(), actualVXRepository.getCreateDate());
        Assert.assertEquals(expectedVXRepository.getOwner(), actualVXRepository.getOwner());
        Assert.assertEquals(expectedVXRepository.getRepositoryType() , actualVXRepository.getRepositoryType());
        Assert.assertEquals(expectedVXRepository.getConfig() , actualVXRepository.getConfig());
}