fixing java compilation issue in test