public function testBeforeSave() { $entity = new Account(); $entity->beforeSave(); $this->assertInstanceOf('\\DateTime', $entity->getCreatedAt()); }