Added some code for completion of example for mocking and intialization of NSB Evironment