oop and java testing