### Question:
RestClientExternalResourceConsumer extends BaseStepExternalResourceConsumer<Rest, RestMeta> { @Override public Collection<IExternalResourceInfo> getResourcesFromMeta( RestMeta meta, IAnalysisContext context ) { List<IExternalResourceInfo> resources = new ArrayList<>(); if ( !meta.isUrlInField() ) { String url = meta.getUrl(); WebServiceResourceInfo resourceInfo = createResourceInfo( url, meta ); resources.add( resourceInfo ); } return resources; }  @Override Collection<IExternalResourceInfo> getResourcesFromMeta( RestMeta meta, IAnalysisContext context ); @Override Collection<IExternalResourceInfo> getResourcesFromRow( Rest step, RowMetaInterface rowMeta, Object[] row ); @Override boolean isDataDriven( RestMeta meta ); @Override Class<RestMeta> getMetaClass();  }### Answer:
@Test public void testGetResourcesFromMeta() throws Exception { when( meta.getUrl() ).thenReturn( row[ 0 ].toString() ); Collection<IExternalResourceInfo> resourcesFromMeta = consumer.getResourcesFromMeta( meta ); assertEquals( 1, resourcesFromMeta.size() ); assertEquals( row[ 0 ], resourcesFromMeta.toArray( new IExternalResourceInfo[ 1 ] )[ 0 ].getName() ); }