/**
  * @test
  */
 public function testGetConfigTreeBuilder()
 {
     $config = new Configuration();
     /** @var \Symfony\Component\Config\Definition\ArrayNode $node  */
     $tree = $config->getConfigTreeBuilder()->buildTree();
     //check root name
     $this->assertEquals('twilio', $tree->getName());
     //get child nodes and check them
     /** @var \Symfony\Component\Config\Definition\ScalarNode[] $children  */
     $children = $tree->getChildren();
     //check length
     $this->assertEquals(4, count($children));
     //check if all config values are available
     $this->assertArrayHasKey('sid', $children);
     $this->assertArrayHasKey('authToken', $children);
     $this->assertArrayHasKey('version', $children);
     $this->assertArrayHasKey('retryAttempts', $children);
 }