### Question:
XmlOutputMeta extends BaseTransformMeta implements ITransformMeta<XmlOutput, XmlOutputData> { public String[] getFiles( IVariables space ) { int copies = 1; int splits = 1; if ( stepNrInFilename ) { copies = 3; } if ( splitEvery != 0 ) { splits = 3; } int nr = copies * splits; if ( nr > 1 ) { nr++; } String[] retval = new String[ nr ]; int i = 0; for ( int copy = 0; copy < copies; copy++ ) { for ( int split = 0; split < splits; split++ ) { retval[ i ] = buildFilename( space, copy, split, false ); i++; } } if ( i < nr ) { retval[ i ] = "..."; } return retval; } XmlOutputMeta(); boolean isDateInFilename(); void setDateInFilename( boolean dateInFilename ); String getExtension(); void setExtension( String extension ); boolean isDoNotOpenNewFileInit(); void setDoNotOpenNewFileInit( boolean doNotOpenNewFileInit ); String getFileName(); void setFileName( String fileName ); int getSplitEvery(); void setSplitEvery( int splitEvery ); boolean isTransformNrInFilename(); void setTransformNrInFilename( boolean stepNrInFilename ); boolean isTimeInFilename(); void setTimeInFilename( boolean timeInFilename ); boolean isAddToResultFiles(); void setAddToResultFiles( boolean addtoresultfilenamesin ); boolean isSpecifyFormat(); void setSpecifyFormat( boolean SpecifyFormat ); String getDateTimeFormat(); void setDateTimeFormat( String date_time_format ); boolean isZipped(); void setZipped( boolean zipped ); XmlField[] getOutputFields(); void setOutputFields( XmlField[] outputFields ); void allocate( int nrfields ); Object clone(); @Override ITransform createTransform( TransformMeta transformMeta, XmlOutputData data, int copyNr, PipelineMeta pipelineMeta, Pipeline pipeline ); @Override XmlOutputData getTransformData(); @Override void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ); String getNewLine( String fformat ); void setDefault(); String[] getFiles( IVariables space ); String buildFilename( IVariables space, int stepnr, int splitnr, boolean ziparchive ); void getFields( IRowMeta row, String name, IRowMeta[] info, TransformMeta nextTransform,
                         IVariables space, IHopMetadataProvider metadataProvider ); IRowMeta getRequiredFields( IVariables space ); String getXml(); void check( List<ICheckResult> remarks, PipelineMeta transMeta, TransformMeta stepinfo, IRowMeta prev,
                     String[] input, String[] output, IRowMeta info, IVariables space, IHopMetadataProvider metadataProvider ); String getEncoding(); void setEncoding( String encoding ); String getMainElement(); void setMainElement( String mainElement ); String getRepeatElement(); void setRepeatElement( String repeatElement ); String getNameSpace(); void setNameSpace( String nameSpace ); void setOmitNullValues( boolean omitNullValues ); boolean isOmitNullValues(); boolean isServletOutput(); void setServletOutput( boolean servletOutput ); String exportResources( IVariables space, Map<String, ResourceDefinition> definitions,
                                 IResourceNaming resourceNamingInterface, IHopMetadataProvider metadataProvider ); boolean passDataToServletOutput();  }### Answer:
@Test public void testGetFiles() throws Exception { XmlOutputMeta xmlOutputMeta = new XmlOutputMeta(); xmlOutputMeta.setDefault(); xmlOutputMeta.setTransformNrInFilename( true ); xmlOutputMeta.setSplitEvery( 100 ); xmlOutputMeta.setSpecifyFormat( true ); xmlOutputMeta.setDateTimeFormat( "99" ); String[] files = xmlOutputMeta.getFiles( new Variables() ); assertEquals( 10, files.length ); assertArrayEquals( new String[] { "file99_0_00001.xml", "file99_0_00002.xml", "file99_0_00003.xml", "file99_1_00001.xml", "file99_1_00002.xml", "file99_1_00003.xml", "file99_2_00001.xml", "file99_2_00002.xml", "file99_2_00003.xml", "..." }, files ); }