[Java] Add a trivial test of constructing a phantom invoice