### Question:
BlockUntilTransformsFinishMeta extends BaseTransformMeta implements ITransformMeta<BlockUntilTransformsFinish, BlockUntilTransformsFinishData> { public Object clone() { BlockUntilTransformsFinishMeta retval = (BlockUntilTransformsFinishMeta) super.clone(); int nrFields = transformName.length; retval.allocate( nrFields ); System.arraycopy( transformName, 0, retval.transformName, 0, nrFields ); System.arraycopy( transformCopyNr, 0, retval.transformCopyNr, 0, nrFields ); return retval; } BlockUntilTransformsFinishMeta(); void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ); Object clone(); void allocate( int nrFields ); String[] getTransformName(); String[] getTransformCopyNr(); void setTransformName( String[] transformName ); void setTransformCopyNr( String[] transformCopyNr ); void getFields( IRowMeta r, String name, IRowMeta[] info, TransformMeta nextTransform,
                         IVariables variables, IHopMetadataProvider metadataProvider ); String getXml(); void setDefault(); void check( List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta,
                     IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables,
                     IHopMetadataProvider metadataProvider ); BlockUntilTransformsFinish createTransform( TransformMeta transformMeta, BlockUntilTransformsFinishData data, int cnr, PipelineMeta tr,
                                                     Pipeline pipeline ); BlockUntilTransformsFinishData getTransformData(); PipelineType[] getSupportedPipelineTypes();  }### Answer:
@Test public void cloneTest() throws Exception { BlockUntilTransformsFinishMeta meta = new BlockUntilTransformsFinishMeta(); meta.allocate( 2 ); meta.setTransformName( new String[] { "transform1", "transform2" } ); meta.setTransformCopyNr( new String[] { "copy1", "copy2" } ); BlockUntilTransformsFinishMeta aClone = (BlockUntilTransformsFinishMeta) meta.clone(); assertFalse( aClone == meta ); assertTrue( Arrays.equals( meta.getTransformName(), aClone.getTransformName() ) ); assertTrue( Arrays.equals( meta.getTransformCopyNr(), aClone.getTransformCopyNr() ) ); assertEquals( meta.getXml(), aClone.getXml() ); }