public function testGetAddressAttributeMetadataNoSuchEntity() { try { $this->_service->getAddressAttributeMetadata('1'); $this->fail('Expected exception not thrown.'); } catch (NoSuchEntityException $e) { $this->assertEquals('No such entity with entityType = customer_address, attributeCode = 1', $e->getMessage()); } }