/**
* @dataProvider messageProvider
*
* @param Message $message
*/
public function testAddAttachment($message)
{
$storage = new Storage(new LocalStorageDriver(['Directory' => __DIR__ . '/Attachments']));
$message->addAttachment(new File('Attachment.yaml', $storage), 'ExampleConfig.yaml', 'text/yaml');
$children = $message->getChildren();
$this->assertSame('text/yaml', $children[0]->getContentType());
}