public function testShouldUseDefaultFactoryToCreateInternalRuleBasedOnGivenCountryCodeWhenFactoryIsNotDefined() { $countryCode = 'DE'; $rule = new Bank($countryCode); $this->assertInstanceOf('Respect\\Validation\\Rules\\Locale\\GermanBank', $rule->getValidatable()); }