public void setCompressionType( String value ) {
    compressionType = StringUtil.isVariable( value ) ? value : parseFromToString( value, CompressionType.values(), CompressionType.NONE ).name();
  }
@Test
  public void setCompressionType() {
    metaBase.setCompressionType( "snappy" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.SNAPPY.toString() );
    metaBase.setCompressionType( "Snappy" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.SNAPPY.toString() );
    metaBase.setCompressionType( "SNAPPY" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.SNAPPY.toString() );
    metaBase.setCompressionType( "deflate" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.DEFLATE.toString() );
    metaBase.setCompressionType( "Deflate" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.DEFLATE.toString() );
    metaBase.setCompressionType( "DEFLATE" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.DEFLATE.toString() );
    metaBase.setCompressionType( "DEFLATE124" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.NONE.toString() );
    metaBase.setCompressionType( "None" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.NONE.toString() );
    metaBase.setCompressionType( "NONE" );
    Assert.assertEquals( metaBase.getCompressionType(), AvroOutputMetaBase.CompressionType.NONE.toString() );
  }