/** @test */
 public function building_returns_an_instance_of_attribute_statement_mapping_rules()
 {
     $builder = new \Stormpath\Saml\AttributeStatementMappingRuleBuilder();
     $builder->setName('test');
     $builder->setNameFormat('urn:oasis:names:tc:SAML:1.1:nameid-format:email');
     $builder->setAccountAttributes(['email', 'username']);
     $this->assertInstanceOf('Stormpath\\Saml\\AttributeStatementMappingRule', $builder->build());
 }
 /** @test */
 public function a_built_rule_has_getters_available_to_it()
 {
     $builder = new \Stormpath\Saml\AttributeStatementMappingRuleBuilder();
     $builder->setName('test');
     $builder->setNameFormat('urn:oasis:names:tc:SAML:1.1:nameid-format:email');
     $builder->setAccountAttributes(['email', 'username']);
     $rule = $builder->build();
     $this->assertEquals('test', $rule->getName());
     $this->assertEquals('urn:oasis:names:tc:SAML:1.1:nameid-format:email', $rule->getNameFormat());
     $this->assertEquals(['email', 'username'], $rule->getAccountAttributes());
 }