JUnit provides a method assertTrue(...). You should always use this method rather than assertEquals(true, ...).