### Question:
ExecutionData implements IExecutionData { @Override public void addExternalResource( String consumerName, IExternalResourceInfo externalResource ) { List<IExternalResourceInfo> resources = this.externalResources.get( consumerName ); if ( resources == null ) { resources = new LinkedList<IExternalResourceInfo>(); } resources.add( externalResource ); this.externalResources.put( consumerName, resources ); }  @Override Date getStartTime(); @Override void setStartTime( Date startTime ); @Override Date getEndTime(); @Override void setEndTime( Date endTime ); @Override long getFailureCount(); @Override void setFailureCount( long failureCount ); @Override String getExecutorServer(); @Override void setExecutorServer( String executorServer ); @Override String getExecutorUser(); @Override void setExecutorUser( String executorUser ); @Override String getClientExecutor(); @Override void setClientExecutor( String clientExecutor ); @Override String getLoggingChannelId(); @Override void setLoggingChannelId( String loggingChannelId ); @Override List<IParamInfo<String>> getParameters(); @Override void setParameters( List<IParamInfo<String>> parameters ); @Override void addParameter( IParamInfo<String> parameter ); @Override Map<String, List<IExternalResourceInfo>> getExternalResources(); @Override void setExternalResources( Map<String, List<IExternalResourceInfo>> externalResources ); @Override void addExternalResource( String consumerName, IExternalResourceInfo externalResource ); @Override Map<Object, Object> getVariables(); @Override void addVariable( String name, String value ); @Override List<Object> getArguments(); @Override void putArgument( int index, Object value ); @Override IArtifactMetadata getArtifactMetadata(); @Override void setArtifactMetadata( IArtifactMetadata artifactMetadata ); @Override IUserMetadata getUserMetadata(); @Override void setUserMetadata( IUserMetadata userMetadata );  }### Answer:
@Test public void testAddExternalResource() { IExternalResourceInfo externalResource = new BaseResourceInfo(); assertEquals( executionData.getExternalResources().size(), 0 ); executionData.addExternalResource( "testStep", externalResource ); assertEquals( executionData.getExternalResources().get( "testStep" ).get( 0 ), externalResource ); }