def METHOD_NAME(self):
    """
    Test write().
    """
    config = OCIO.Config.CreateRaw()
    grp = OCIO.GroupTransform()
    mat = OCIO.MatrixTransform()
    mat.setOffset([0.1, 0.2, 0.3, 0])
    fmd = mat.getFormatMetadata()
    fmd.setID('matID')
    fmd.setName('matName')
    fmd.addChildElement('Description', 'Sample matrix.')
    grp.appendTransform(mat)
    range = OCIO.RangeTransform()
    range.setMinInValue(0.1)
    range.setMinOutValue(0.2)
    range.setMaxInValue(1.1)
    range.setMaxOutValue(1.4)
    fmd = range.getFormatMetadata()
    fmd.setID('rangeID')
    fmd.setName('rangeName')
    fmd.addChildElement('Description', 'Sample range.')
    grp.appendTransform(range)
    fmd = grp.getFormatMetadata()
    fmd.setID('clfID')
    fmd.addChildElement('Description', 'Sample clf file.')
    self.assertEqual(grp.write(formatName='Academy/ASC Common LUT Format', config=config),
                     """<?xml version="1.0" encoding="UTF-8"?>