/** @depends testCreateValue */
 public function testUpdateValue()
 {
     $attr = new Attribute("attr", 0);
     $id = AttributesService::createAttribute($attr);
     $attr->id = $id;
     $val = new AttributeValue("value");
     $valId = AttributesService::createValue($val, $id);
     $val->id = $valId;
     $val->value = "updated";
     $this->assertTrue(AttributesService::updateValue($val), "Update failed");
     $pdo = PDOBuilder::getPDO();
     $sql = "SELECT * FROM ATTRIBUTEVALUE";
     $stmt = $pdo->prepare($sql);
     $stmt->execute();
     $row = $stmt->fetch();
     $this->assertEquals("updated", $row['VALUE'], "Value mismatch");
 }