adding Sample Test code for how to use notify and wait to gracefully suspend and resume thread - with both single thread listener and multiple thread listener version