### Question:
IfNullMeta extends BaseTransformMeta implements ITransformMeta<IfNull,IfNullData> { public void setDefault() { replaceAllByValue = null; replaceAllMask = null; selectFields = false; selectValuesType = false; setEmptyStringAll = false; int nrFields = 0; int nrtypes = 0; allocate( nrtypes, nrFields ); } IfNullMeta(); @Override IfNull createTransform( TransformMeta transformMeta, IfNullData data, int copyNr,
                                PipelineMeta pipelineMeta, Pipeline pipeline ); boolean isSetEmptyStringAll(); void setEmptyStringAll( boolean setEmptyStringAll ); void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ); Object clone(); void allocate( int nrtypes, int nrFields ); boolean isSelectFields(); void setSelectFields( boolean selectFields ); void setSelectValuesType( boolean selectValuesType ); boolean isSelectValuesType(); void setReplaceAllByValue( String replaceValue ); String getReplaceAllByValue(); void setReplaceAllMask( String replaceAllMask ); String getReplaceAllMask(); Fields[] getFields(); void setFields( Fields[] fields ); ValueTypes[] getValueTypes(); void setValueTypes( ValueTypes[] valueTypes ); 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 ); IfNullData getTransformData(); boolean supportsErrorHandling();  }### Answer:
@Test public void testSetDefault() throws Exception { IfNullMeta inm = new IfNullMeta(); inm.setDefault(); assertTrue( ( inm.getValueTypes() != null ) && ( inm.getValueTypes().length == 0 ) ); assertTrue( ( inm.getFields() != null ) && ( inm.getFields().length == 0 ) ); assertFalse( inm.isSelectFields() ); assertFalse( inm.isSelectValuesType() ); }