"Domain " + domainName + " should be present, but it was not found for app " + app.getName()
);
}
private void assertDomainNotPresent(App app, String domainName) {
for (Domain d : connection.execute(new DomainList(app.getName()), apiKey)) {
if (d.getDomain().equalsIgnoreCase(domainName)) {
throw new AssertionError(
"Domain " + domainName + " should not be present, but it was found for app " + app.getName()
);
}