public function testApplyBehaviors()
 {
     $behavior = $this->getBehaviorMock('foo');
     $behavior->expects($this->once())->method('isTableModified')->will($this->returnValue(false));
     $behavior->expects($this->once())->method('getTableModifier')->will($this->returnValue($behavior));
     $behavior->expects($this->once())->method('modifyTable');
     $behavior->expects($this->once())->method('setTableModified')->with($this->equalTo(true));
     $table = new Table();
     $table->addBehavior($behavior);
     $table->applyBehaviors();
 }