### Question:
MetaInjectMeta extends BaseTransformMeta implements ITransformMeta<MetaInject, MetaInjectData>, ITransformMetaChangeListener, ISubPipelineAwareMeta { @Override public List<ResourceReference> getResourceDependencies(PipelineMeta pipelineMeta, TransformMeta transformInfo ) { List<ResourceReference> references = new ArrayList<ResourceReference>( 5 ); String realFilename = pipelineMeta.environmentSubstitute( fileName ); String realPipelineName = pipelineMeta.environmentSubstitute(pipelineName); String realDirectoryPath = pipelineMeta.environmentSubstitute( directoryPath ); ResourceReference reference = new ResourceReference( transformInfo ); references.add( reference ); if ( !Utils.isEmpty( realFilename ) ) { reference.getEntries().add( new ResourceEntry( realFilename, ResourceEntry.ResourceType.ACTIONFILE ) ); } else if ( !Utils.isEmpty( realPipelineName ) ) { String realTransformation = realDirectoryPath + "/" + realPipelineName; reference.getEntries().add( new ResourceEntry( realTransformation, ResourceEntry.ResourceType.ACTIONFILE ) ); } return references; } MetaInjectMeta(); @Override Object clone(); @Override void setDefault(); @Override String getXml(); @Override void loadXml(Node transformNode, IHopMetadataProvider metadataProvider ); @Override void getFields(IRowMeta rowMeta, String origin, IRowMeta[] info, TransformMeta nextTransform,
                        IVariables space, IHopMetadataProvider metadataProvider ); @Override MetaInjectData getTransformData(); Map<TargetTransformAttribute, SourceTransformField> getTargetSourceMapping(); void setTargetSourceMapping( Map<TargetTransformAttribute, SourceTransformField> targetSourceMapping ); String getPipelineName(); void setPipelineName(String pipelineName ); String getFileName(); void setFileName( String fileName ); String getDirectoryPath(); void setDirectoryPath( String directoryPath ); ObjectLocationSpecificationMethod getSpecificationMethod(); void setSpecificationMethod( ObjectLocationSpecificationMethod specificationMethod ); static final synchronized PipelineMeta loadPipelineMeta(MetaInjectMeta injectMeta,
                                                                 IHopMetadataProvider metadataProvider, IVariables space ); @Override List<ResourceReference> getResourceDependencies(PipelineMeta pipelineMeta, TransformMeta transformInfo ); @Override String exportResources(IVariables space, Map<String, ResourceDefinition> definitions,
                                IResourceNaming resourceNamingInterface, IHopMetadataProvider metadataProvider ); @Override boolean excludeFromCopyDistributeVerification(); @Override ITransform createTransform(TransformMeta transformMeta, MetaInjectData data, int copyNr, PipelineMeta pipelineMeta, Pipeline pipeline); @Override boolean excludeFromRowLayoutVerification(); String getSourceTransformName(); void setSourceTransformName(String sourceTransformName ); String getTargetFile(); void setTargetFile( String targetFile ); boolean isNoExecution(); void setNoExecution( boolean noExecution ); @Override String[] getReferencedObjectDescriptions(); @Override boolean[] isReferencedObjectEnabled(); @Override String getActiveReferencedObjectDescription(); @Override IHasFilename loadReferencedObject(int index, IHopMetadataProvider metadataProvider, IVariables space ); String getStreamSourceTransformName(); void setStreamSourceTransformName(String streamSourceTransformName); TransformMeta getStreamSourceTransform(); void setStreamSourceTransform(TransformMeta streamSourceTransform); String getStreamTargetTransformName(); void setStreamTargetTransformName(String streamTargetTransformName); @Override void searchInfoAndTargetTransforms( List<TransformMeta> transforms ); List<MetaInjectOutputField> getSourceOutputFields(); void setSourceOutputFields( List<MetaInjectOutputField> sourceOutputFields ); List<MetaInjectMapping> getMetaInjectMapping(); void setMetaInjectMapping( List<MetaInjectMapping> metaInjectMapping ); void actualizeMetaInjectMapping(); @Override void onTransformChange( PipelineMeta pipelineMeta, TransformMeta oldMeta, TransformMeta newMeta ); @Override String getFilename();  }### Answer:
@Test public void getResourceDependencies() { PipelineMeta pipelineMeta = mock( PipelineMeta.class ); TransformMeta transformMeta = mock( TransformMeta.class ); List<ResourceReference> actualResult = metaInjectMeta.getResourceDependencies( pipelineMeta, transformMeta ); assertEquals( 1, actualResult.size() ); ResourceReference reference = actualResult.iterator().next(); assertEquals( 0, reference.getEntries().size() ); }