### Question:
StandardMasterApiActivityManager extends BaseMasterApiManager implements InternalMasterApiActivityManager { @VisibleForTesting MasterEventListener getMasterEventListener() { return masterEventListener; }  @Override void startup(); @Override void shutdown(); @Override Map<String, Object> saveActivity(SimpleActivity activityData, InputStream activityContentStream); @Override Map<String, Object> getActivitiesByFilter(String filter); @Override Map<String, Object> getActivityView(String id); @Override Map<String, Object> getActivityFullView(String id); @Override Map<String, Object> deleteActivity(String id); @Override Map<String, Object> updateActivityMetadata(String id, Object metadataCommandObj); @Override Map<String, Object> getLiveActivitiesByFilter(String filter); @Override Map<String, Object> getLiveActivityView(String id); @Override Map<String, Object> getLiveActivityFullView(String id); @Override boolean canCreateLiveActivities(); @Override Map<String, Object> deleteLiveActivity(String id); @Override Map<String, Object> createLiveActivity(Map<String, Object> args); @Override Map<String, Object> getLiveActivityConfiguration(String id); @Override Map<String, Object> configureLiveActivity(String id, Map<String, String> map); @Override Map<String, Object> editLiveActivity(Map<String, Object> args); @Override Map<String, Object> updateLiveActivityMetadata(String id, Object metadataCommandObj); @Override Map<String, Object> deleteLiveActivityGroup(String id); @Override Map<String, Object> getBasicSpaceControllerApiData(SpaceController controller); @Override Map<String, Object> getSpaceControllerConfiguration(String id); @Override Map<String, Object> configureSpaceController(String id, Map<String, String> map); @Override void getLiveActivityStatusApiData(LiveActivity liveActivity, Map<String, Object> data); @Override Map<String, Object> getLiveActivityGroupView(String id); @Override Map<String, Object> getLiveActivityGroupFullView(String id); @Override Map<String, Object> getLiveActivityGroupsByFilter(String filter); @Override List<Map<String, Object>> getAllUiLiveActivitiesByController(SpaceController controller); @Override Map<String, Object> getSpacesByFilter(String filter); @Override Map<String, Object> deleteSpace(String id); @Override Map<String, Object> updateSpaceMetadata(String id, Object metadataCommandObj); @Override Map<String, Object> getSpaceView(String id); @Override Map<String, Object> getSpaceFullView(String id); @Override Map<String, Object> getSpaceLiveActivityGroupView(String id); @Override Map<String, Object> updateLiveActivityGroupMetadata(String id, Object metadataCommandObj); void setMasterEventManager(MasterEventManager masterEventManager); void setActivityRepository(ActivityRepository activityRepository); void setSpaceControllerRepository(SpaceControllerRepository spaceControllerRepository); void setActivityRepositoryManager(ActivityRepositoryManager activityRepositoryManager); void setActiveSpaceControllerManager(ActiveSpaceControllerManager activeSpaceControllerManager);  }### Answer:
@Test public void testActivityInstallSuccess() { String uuid = "foo"; LiveActivityDeploymentResponse result = new LiveActivityDeploymentResponse("trans", uuid, ActivityDeployStatus.SUCCESS, null, 1111); long timestamp = 1234567; LiveActivity liveActivity = Mockito.mock(LiveActivity.class); Mockito.when(liveActivity.getUuid()).thenReturn(uuid); ActiveLiveActivity activeLiveActivity = new ActiveLiveActivity(null, liveActivity, null, null); Mockito.when(activityRepository.getLiveActivityByUuid(uuid)).thenReturn(liveActivity); masterApiActivityManager.getMasterEventListener().onLiveActivityDeploy(activeLiveActivity, result, timestamp); Mockito.verify(liveActivity).setLastDeployDate(new Date(timestamp)); Mockito.verify(activityRepository).saveLiveActivity(liveActivity); }