public function testToArray()
{
$text = "Hello i am a string";
$attachment = Attachment::createFromBinaryData($text, "text/plain");
$this->assertEquals(array("data" => "SGVsbG8gaSBhbSBhIHN0cmluZw==", "content_type" => "text/plain"), $attachment->toArray());
}