update to Junit 4.11. MethodRule is no longer deprecated in 4.11. Also
created NeedleTestRule implementing TestRule which allows use of
RuleChains.