Added a JUnit test for processHandler