gomonkey is a library to make monkey patching in unit tests easy
Private methods & properties in JavaScript