Second version of NJS mock.