public function createTerm($vocabulary, $name)
    {
        // @todo make this easily extensible.
        $term = (object) array(
        'name' => $name,
        'vocabulary_machine_name' => $vocabulary,
        'description' => $this->getRandom()->name(255),
        );
        $saved = $this->termCreate($term);

        // Set internal page on the term.
        $this->getSession()->visit($this->locatePath('/taxonomy/term/' . $saved->tid));
    }