### Question:
WebServiceMeta extends BaseTransformMeta implements ITransformMeta<WebService, WebServiceData> { public WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ) { WebServiceField param = null; if ( Utils.isEmpty( wsName ) ) { return param; } if ( ignoreWsNsPrefix ) { String[] wsNameParsed = wsName.split( ":" ); wsName = wsNameParsed[ wsNameParsed.length - 1 ]; } for ( Iterator<WebServiceField> iter = getFieldsOut().iterator(); iter.hasNext(); ) { WebServiceField paramCour = iter.next(); if ( paramCour.getWsName().equals( wsName ) ) { param = paramCour; break; } } return param; } WebServiceMeta();  WebServiceMeta( Node transformNode, IHopMetadataProvider metadataProvider ); @Override void getFields( IRowMeta r, String name, IRowMeta[] info, TransformMeta nextTransform,
                         IVariables variables, IHopMetadataProvider metadataProvider ); WebServiceMeta clone(); void setDefault(); void check( List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta,
                     IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables,
                     IHopMetadataProvider metadataProvider ); String getXml(); void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ); String getOperationName(); void setOperationName( String operationName ); @Override WebService createTransform( TransformMeta transformMeta, WebServiceData data, int cnr,
                                PipelineMeta pipelineMeta, Pipeline disp ); WebServiceData getTransformData(); WebServiceField getFieldInFromName( String name ); WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ); List<WebServiceField> getFieldsIn(); void setFieldsIn( List<WebServiceField> fieldsIn ); boolean hasFieldsIn(); void addFieldIn( WebServiceField field ); List<WebServiceField> getFieldsOut(); void setFieldsOut( List<WebServiceField> fieldsOut ); void addFieldOut( WebServiceField field ); String getInFieldArgumentName(); void setInFieldArgumentName( String inFieldArgumentName ); String getOutFieldArgumentName(); void setOutFieldArgumentName( String outFieldArgumentName ); String getUrl(); void setUrl( String url ); int getCallTransform(); void setCallTransform( int callTransform ); String getOperationNamespace(); void setOperationNamespace( String operationNamespace ); String getHttpLogin(); void setHttpLogin( String httpLogin ); String getHttpPassword(); void setHttpPassword( String httpPassword ); String getProxyHost(); void setProxyHost( String proxyHost ); String getProxyPort(); void setProxyPort( String proxyPort ); String getInFieldContainerName(); void setInFieldContainerName( String inFieldContainerName ); String getOutFieldContainerName(); void setOutFieldContainerName( String outFieldContainerName ); boolean isPassingInputData(); void setPassingInputData( boolean passingInputData ); boolean isCompatible(); void setCompatible( boolean compatible ); String getRepeatingElementName(); void setRepeatingElementName( String repeatingElementName ); boolean isReturningReplyAsString(); void setReturningReplyAsString( boolean returningReplyAsString ); String getOperationRequestName(); void setOperationRequestName( String operationRequestName ); static final String XSD_NS_URI; static final int DEFAULT_TRANSFORM; }### Answer:
@Test public void testGetFieldOut() throws Exception { DatabaseMeta dbMeta = mock( DatabaseMeta.class ); IHopMetadataProvider metadataProvider = mock( IHopMetadataProvider.class ); WebServiceMeta webServiceMeta = new WebServiceMeta( getTestNode(), metadataProvider ); assertNull( webServiceMeta.getFieldOutFromWsName( "", true ) ); assertEquals( "GetCurrentExchangeRateResult", webServiceMeta.getFieldOutFromWsName( "GetCurrentExchangeRateResult", false ).getName() ); assertEquals( "GetCurrentExchangeRateResult", webServiceMeta.getFieldOutFromWsName( "something:GetCurrentExchangeRateResult", true ).getName() ); }