Abstract Class test in Java.