'),  true);
    assert.equal(isDescendant('foo.bar', 'foo.bar'),      false);
    assert.equal(isDescendant('foo.bar', 'foo.bars'),     false);
    assert.equal(isDescendant('foo.bar', 'foo'),          false);
    assert.equal(isDescendant('foo.bar', 'bar'),          false);

    assert.equal(isDescendant('foo', 'foo.bar'), true);
    assert.equal(isDescendant('foo', 'foo'),     false);
  });

  test('translate()', function() {
    assert.equal(translate('foo', 'baz', 'foo.bar'),
                 'baz.bar')