You can, but it's a crime, much like buying banned drugs etc.
> do they expect a dad to raise a kid that is not his?
Yes.
You just need a court order to do a paternity test, they're not banned but regulated by law.