As we discussed yesterday, the getDatabase here:
// implicitly PROD:
DataAPIClient client = new DataAPIClient(new DataAPIClientOptions());
// DEV endpoint:
Database database =
client.getDatabase(
"https://00000000-0000-0000-0000-000000000000-us-east-1.apps.astra-dev.datastax.com",
new DatabaseOptions("AstraCS:abc", new DataAPIClientOptions()));
System.out.println("Got away with it.");
should raise an error since the environment detected in the endpoint (dev) does not match the one known to the client (main).