### Question:
OpenMappingExtension implements ExtensionPointInterface { @Override public void callExtensionPoint( LogChannelInterface log, Object object ) throws KettleException { StepMeta stepMeta = (StepMeta) ( (Object[]) object )[ 0 ]; TransMeta transMeta = (TransMeta) ( (Object[]) object )[ 1 ]; if ( stepMeta.getStepMetaInterface() instanceof MetaInjectMeta ) { transMeta.setFilename( null ); transMeta.setObjectId( null ); String appendName = " (" + BaseMessages.getString( PKG, "TransGraph.AfterInjection" ) + ")"; if ( !transMeta.getName().endsWith( appendName ) ) { transMeta.setName( transMeta.getName() + appendName ); } } }  @Override void callExtensionPoint( LogChannelInterface log, Object object );  }### Answer:
@Test public void testLocalizedMessage() throws KettleException { OpenMappingExtension openMappingExtension = new OpenMappingExtension(); Class PKG = SpoonLifecycleListener.class; String afterInjectionMessageAdded = BaseMessages.getString( PKG, "TransGraph.AfterInjection" ); transMeta.setName( TRANS_META_NAME ); doReturn( mock( MetaInjectMeta.class ) ).when( stepMeta ).getStepMetaInterface(); openMappingExtension.callExtensionPoint( logChannelInterface, metaData ); assert ( transMeta.getName().contains( afterInjectionMessageAdded ) ); }