Denial of paternity
When a child is born during the marriage, the husband will automatically become the legal father of the child. However, both the mother and the father can go to court to deny the fatherhood of the legal father. In most cases a DNA-test must be done before the court can make a decision. If the court approves the denial, the consequences go back to the moment of birth: the (ex)husband has never been the legal father of the child. This means the child will not inherit and the (ex)husband will have no duty to support the child.