def METHOD_NAME(self, mock_vmdk):
    vmdisk = Mock()
    vmdisk.get_controller = Mock(
        return_value='controller'
    )
    vmdisk.get_diskmode = Mock(
        return_value='disk-mode'
    )
    self.xml_state.get_build_type_vmdisk_section = Mock(
        return_value=vmdisk
    )
    DiskFormat.new('vmdk', self.xml_state, 'root_dir', 'target_dir')
    mock_vmdk.assert_called_once_with(
        self.xml_state, 'root_dir', 'target_dir',
        {'adapter_type=controller': None, 'subformat=disk-mode': None}
    )