AssetManagerMessageReceiverImpl extends BaseMessageReceiverImpl<AssetManagerItem> { @Override protected void execute(AssetManagerItem msg) { msg.decompose(takeSnapshot, deleteSnapshot, deleteEpisode); } AssetManagerMessageReceiverImpl(); void setAclServiceFactory(AclServiceFactory aclServiceFactory);  }
@Test public void testUpdateCreator() throws Exception { MediaPackage mediaPackage = new MediaPackageBuilderImpl() .loadFromXml(getClass().getResourceAsStream("/jobs_mediapackage1.xml")); TakeSnapshot takeSnapshot = AssetManagerItem.add(workspace, mediaPackage, new AccessControlList(), 0, new Date()); assetManager.execute(takeSnapshot); Event event = index.getEventResult(); assertNotNull(event); assertEquals("Current user is expected to be creator as no other creator has been set explicitly", "Creator", event.getCreator()); event.setCreator("Hans"); index.setInitialEvent(event); assetManager.execute(takeSnapshot); event = index.getEventResult(); assertNotNull(event); assertEquals("Creator has been updated", "Hans", event.getCreator()); }