Junit test case for DefaultDispenser