domain = DomainTestUtils.ensureHasDomain(user);
ApplicationTestUtils.getOrCreateApplication(domain);
assertThat(domain.getApplications()).isNotEmpty();
// operation
domain.destroy();
fail("OpenShiftEndpointException did not occurr");
} catch (OpenShiftEndpointException e) {
// verification
assertThat(e.getRestResponseMessages().size()).isEqualTo(1);
List<Message> messages = e.getRestResponseMessage(IField.DEFAULT);