BEfore testing on java