problem 1.1 Java with unit testing