Test case attached. Run mvn clean test and note that the output indicates that the dispose() method was never called.