Kata in java using tdd