Optimized Junit methods