There is no law against abusing someone elses domain or IP address in examples, but it is a very bad idea.
For example will the IP address 1.2.3.4 be in use soon, as IPv4 addresses are running out quite quickly. There are already some concerns about this and that address.
RFC5737 is about IPv4 addresses used for examples, which are any address in networks 192.0.2.0/24 (TEST-NET-1), 198.51.100.0/24 (TEST-NET-2) and 203.0.113.0/24 (TEST-NET-3), like 192.0.2.10, 198.51.100.3 or 203.0.113.254. These should not exist on Internet.
RFC3849 is about IPv6 addresses used for examples, which are any address in 2001:db8::/32. These should not exist on Internet.
RFC2606 is about reserved TLD:s for different use. Those are ".test", ".example", ".invalid" and "localhost". Any domain under those can be used, like "a-host.example"
"test" is used for testing, "example" for documentation, "invalid" in configuration files that needs to be tweeked and "localhost" for 127/8 (mostly 127.0.0.1). There are also three reserved second level domains to be used for example domains (example.com, example.net and example.org).
RFC1981 is about the private network addresses 10/8, 172.16/12 and 192.168/16. Those are private and should not exist on Internet, so they might be used for example networks.
RFC3330 should be of interest as an overview of all special IPv4 networks.
Use http://www.rfc-editor.org/ for reading those RFC:s