Como acessar e testar uma função interna (não-exportação) em um módulo node.js?

Estou tentando descobrir como testar funções internas (ou seja, não exportadas) em nodejs (preferencialmente com mocha ou jasmine). E eu não tenho ideia!

Vamos dizer que eu tenho um módulo assim:

function exported(i) {
   return notExported(i) + 1;
}

function notExported(i) {
   return i*2;
}

exports.exported = exported;

E o seguinte teste (mocha):

var assert = require('assert'),
    test = require('../modules/core/test');

describe('test', function(){

  describe('#exported(i)', function(){
    it('should return (i*2)+1 for any given i', function(){
      assert.equal(3, test.exported(1));
      assert.equal(5, test.exported(2));
    });
  });
});

Existe alguma maneira de testar a unidadenotExported funciona sem realmente exportá-lo, uma vez que não é para ser exposto?

questionAnswers(7)

yourAnswerToTheQuestion