### Question:
WorkItemDefinitionDefaultDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { backendFileSystemManager .deploy(resources.resolveGlobalPath(metadata), new Assets(Arrays.stream(ASSETS) .map(asset -> assetBuilder.apply(asset, ASSETS_ROOT + asset)) .collect(Collectors.toList())), DEPLOY_MESSAGE); } protected  WorkItemDefinitionDefaultDeployService(); @Inject  WorkItemDefinitionDefaultDeployService(final WorkItemDefinitionResources resources,
                                                  final BackendFileSystemManager backendFileSystemManager);   WorkItemDefinitionDefaultDeployService(final WorkItemDefinitionResources resources,
                                           final BackendFileSystemManager backendFileSystemManager,
                                           final BiFunction<String, String, Asset> assetBuilder); @Override void deploy(final Metadata metadata);  }### Answer:
@Test public void testDeployAssets() { ArgumentCaptor<Assets> assetsArgumentCaptor = ArgumentCaptor.forClass(Assets.class); tested.deploy(metadata); verify(backendFileSystemManager, times(1)) .deploy(eq(globalPath), assetsArgumentCaptor.capture(), anyString()); Collection<Asset> assets = assetsArgumentCaptor.getValue().getAssets(); assertEquals(WorkItemDefinitionDefaultDeployService.ASSETS.length, assets.size()); assertTrue(assets.contains(widAsset)); assertTrue(assets.contains(emailIcon)); assertTrue(assets.contains(brIcon)); assertTrue(assets.contains(decisionIcon)); assertTrue(assets.contains(logIcon)); assertTrue(assets.contains(serviceNodeIcon)); assertTrue(assets.contains(milestoneNodeIcon)); }