public function testProtectedApiAllocateThread_AllocatesThreadAndReturnsTrue()
{
$manager = $this->createThreadManager();
$result = $manager->allocateThread($alias = 'alias', $object = new StdClass());
$this->assertTrue($result);
$this->assertSame([$alias => $object], $this->getProtectedProperty($manager, 'threads'));
}