### Question:
TransMetaConverter { private static void resolveStepMetaResources( TransMeta transMeta ) { for ( StepMeta stepMeta : transMeta.getSteps() ) { StepMetaInterface smi = stepMeta.getStepMetaInterface(); if ( smi instanceof ResolvableResource ) { ResolvableResource resolvableMeta = (ResolvableResource) smi; resolvableMeta.resolve(); } } }  static Transformation convert( TransMeta transMeta ); static final String TRANS_META_CONF_KEY; static final String TRANS_META_NAME_CONF_KEY; static final String SUB_TRANSFORMATIONS_KEY; static final String STEP_META_CONF_KEY; static final String TRANS_DEFAULT_NAME; }### Answer:
@Test public void testResolveStepMetaResources() throws KettleException, MetaStoreException { Variables variables = new Variables(); TransMeta transMeta = spy( new TransMeta() ); transMeta.setParentVariableSpace( variables ); doReturn( transMeta ).when( transMeta ).realClone( false ); TestMetaResolvableResource testMetaResolvableResource = spy( new TestMetaResolvableResource() ); TestMetaResolvableResource testMetaResolvableResourceTwo = spy( new TestMetaResolvableResource() ); StepMeta testMeta = new StepMeta( "TestMeta", testMetaResolvableResource ); StepMeta testMetaTwo = new StepMeta( "TestMeta2", testMetaResolvableResourceTwo ); transMeta.addStep( testMeta ); transMeta.addStep( testMetaTwo ); transMeta.addTransHop( new TransHopMeta( testMeta, testMetaTwo ) ); TransMetaConverter.convert( transMeta ); verify( testMetaResolvableResource ).resolve(); verify( testMetaResolvableResourceTwo ).resolve(); }