def METHOD_NAME(
    self, mock_Partitioner, mock_DiskFormat
):
    partitioner = Mock()
    mock_Partitioner.return_value = partitioner
    image_format = Mock()
    image_format.resize_raw_disk.return_value = True
    mock_DiskFormat.return_value = image_format
    self._init_command_args()
    self.task.command_args['resize'] = True
    self.task.command_args['--size'] = '42'
    self.task.process()
    self.loop_provider.create.assert_called_once_with(overwrite=False)
    partitioner.resize_table.assert_called_once_with()
    image_format.resize_raw_disk.assert_called_once_with(
        42
    )
    image_format.create_image_format.assert_called_once_with()