Prithis I just noticed that the second test does not contain @Test annotations at all. JUNIT4 does not run tests that are not annotated, even if the method names start with the test *** (unless, of course, you actually extend the TestCase class, in which case it behaves like a JUNIT3.x test file)
Perhaps this is so that the test does not work at all (and therefore makes you think that it passes)?
source share