### Question:
RangerTagResourceMapService extends RangerTagResourceMapServiceBase<XXTagResourceMap, RangerTagResourceMap> { public RangerTagResourceMap getPopulatedViewObject(XXTagResourceMap xObj) { return populateViewBean(xObj); } RangerTagResourceMapService(); @Override RangerTagResourceMap postCreate(XXTagResourceMap tagResMap); RangerTagResourceMap getPopulatedViewObject(XXTagResourceMap xObj); List<RangerTagResourceMap> getByTagId(Long tagId); List<RangerTagResourceMap> getByTagGuid(String tagGuid); List<RangerTagResourceMap> getByResourceId(Long resourceId); List<Long> getTagIdsForResourceId(Long resourceId); List<RangerTagResourceMap> getByResourceGuid(String resourceGuid); RangerTagResourceMap getByGuid(String guid); RangerTagResourceMap getByTagAndResourceId(Long tagId, Long resourceId); RangerTagResourceMap getByTagAndResourceGuid(String tagGuid, String resourceGuid); List<RangerTagResourceMap> getTagResourceMapsByServiceId(Long serviceId);  }### Answer:
@Test public void test3GetPopulatedViewObject() { Mockito.when(daoMgr.getXXPortalUser()).thenReturn(XXPortalUserDao); rangerTagResourceMapService.getPopulatedViewObject(xXTagResourceMap); }