### Question:
ZipFileMeta extends BaseTransformMeta implements ITransformMeta<ZipFile, ZipFileData> { public void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ) throws HopXmlException { readData( transformNode ); } ZipFileMeta(); @Override ITransform createTransform(TransformMeta transformMeta, ZipFileData data, int copyNr, PipelineMeta pipelineMeta, Pipeline pipeline); String getDynamicSourceFileNameField(); void setDynamicSourceFileNameField( String sourcefilenamefield ); String getBaseFolderField(); void setBaseFolderField( String baseFolderField ); String getMoveToFolderField(); void setMoveToFolderField( String movetofolderfield ); String getDynamicTargetFileNameField(); void setDynamicTargetFileNameField( String targetfilenamefield ); boolean isaddTargetFileNametoResult(); boolean isOverwriteZipEntry(); boolean isCreateParentFolder(); boolean isKeepSouceFolder(); void setKeepSouceFolder( boolean value ); void setaddTargetFileNametoResult( boolean addresultfilenames ); void setOverwriteZipEntry( boolean overwritezipentry ); void setCreateParentFolder( boolean createparentfolder ); void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ); Object clone(); void setDefault(); String getXml(); void check( List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta,
                     IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables,
                     IHopMetadataProvider metadataProvider ); ZipFileData getTransformData(); boolean supportsErrorHandling(); int getOperationType(); static int getOperationTypeByDesc( String tt ); void setOperationType( int operationType ); static String getOperationTypeDesc( int i ); static final String[] operationTypeDesc; static final String[] operationTypeCode; static final int OPERATION_TYPE_NOTHING; static final int OPERATION_TYPE_MOVE; static final int OPERATION_TYPE_DELETE; }### Answer:
@Test public void testLoadAndGetXml() throws Exception { ZipFileMeta zipFileMeta = new ZipFileMeta(); Node transformNode = getTestNode(); DatabaseMeta dbMeta = mock( DatabaseMeta.class ); IHopMetadataProvider metadataProvider = mock( IHopMetadataProvider.class ); TransformMeta mockParentTransformMeta = mock( TransformMeta.class ); zipFileMeta.setParentTransformMeta( mockParentTransformMeta ); PipelineMeta mockPipelineMeta = mock( PipelineMeta.class ); when( mockParentTransformMeta.getParentPipelineMeta() ).thenReturn( mockPipelineMeta ); zipFileMeta.loadXml( transformNode, metadataProvider ); assertXmlOutputMeta( zipFileMeta ); }