### Question:
CalculatorMeta extends BaseTransformMeta implements ITransformMeta<Calculator, CalculatorData> { @Override public void setDefault() { failIfNoFile = true; calculation = new CalculatorMetaFunction[ 0 ]; }  CalculatorMetaFunction[] getCalculation(); void setCalculation( CalculatorMetaFunction[] calcTypes ); boolean isFailIfNoFile(); void setFailIfNoFile( boolean failIfNoFile ); void allocate( int nrCalcs ); @Override void loadXml( Node transformNode, IHopMetadataProvider metadataProvider ); @Override String getXml(); @Override boolean equals( Object obj ); @Override int hashCode(); @Override Object clone(); @Override void setDefault(); @Override void getFields( IRowMeta row, String origin, IRowMeta[] info, TransformMeta nextTransform,
                         IVariables variables, IHopMetadataProvider metadataProvider ); IRowMeta getAllFields( IRowMeta inputRowMeta ); @Override void check( List<ICheckResult> remarks, PipelineMeta pipelineMeta, TransformMeta transformMeta,
                     IRowMeta prev, String[] input, String[] output, IRowMeta info, IVariables variables,
                     IHopMetadataProvider metadataProvider ); @Override Calculator createTransform( TransformMeta transformMeta, CalculatorData data, int cnr, PipelineMeta tr,
                                     Pipeline pipeline ); @Override CalculatorData getTransformData();  }### Answer:
@Test public void testSetDefault() { CalculatorMeta meta = new CalculatorMeta(); meta.setDefault(); assertNotNull( meta.getCalculation() ); assertEquals( 0, meta.getCalculation().length ); assertTrue( meta.isFailIfNoFile() ); }