### Question:
HopServerPipelineStatus { public String getXml() throws HopException { boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "HOP_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" ); return getXML( sendResultXmlWithStatus ); } HopServerPipelineStatus();  HopServerPipelineStatus( String pipelineName, String id, String statusDescription );  HopServerPipelineStatus( Node pipelineStatusNode ); String getXml(); String getXML( boolean sendResultXmlWithStatus ); static HopServerPipelineStatus fromXml(String xml ); String getStatusDescription(); void setStatusDescription( String statusDescription ); String getPipelineName(); void setPipelineName( String pipelineName ); String getErrorDescription(); void setErrorDescription( String errorDescription ); List<TransformStatus> getTransformStatusList(); void setTransformStatusList( List<TransformStatus> transformStatusList ); String getLoggingString(); void setLoggingString( String loggingString ); boolean isRunning(); boolean isStopped(); boolean isWaiting(); boolean isFinished(); long getNrTransformErrors(); Result getResult( PipelineMeta pipelineMeta ); Result getResult(); void setResult( Result result ); boolean isPaused(); void setPaused( boolean paused ); int getLastLoggingLineNr(); void setLastLoggingLineNr( int lastLoggingLineNr ); int getFirstLoggingLineNr(); void setFirstLoggingLineNr( int firstLoggingLineNr ); Date getLogDate(); void setLogDate( Date logDate ); String getId(); void setId( String id ); Date getExecutionStartDate(); void setExecutionStartDate( Date executionStartDate ); Date getExecutionEndDate(); void setExecutionEndDate( Date executionEndDate ); static final String XML_TAG; }### Answer:
@Test public void testGetXML() throws HopException { HopServerPipelineStatus pipelineStatus = new HopServerPipelineStatus(); RowMetaAndData rowMetaAndData = new RowMetaAndData(); String testData = "testData"; rowMetaAndData.addValue( new ValueMetaString(), testData ); List<RowMetaAndData> rows = new ArrayList<>(); rows.add( rowMetaAndData ); Result result = new Result(); result.setRows( rows ); pipelineStatus.setResult( result ); Assert.assertFalse( pipelineStatus.getXml().contains( testData ) ); Assert.assertTrue( pipelineStatus.getXML( true ).contains( testData ) ); }