@Test
public void shouldThrowWithTextAndExistCode() throws Throwable {
// pre-conditions
try {
mockDirector.mockDeleteDomain("foobarz",
new BadRequestException(
DELETE_DOMAINS_FOOBARZ_KO_EXISTINGAPPS.getContentAsString(),
new IOException(
"IOException message: Server returned HTTP response code: 400 for URL: https://openshift.redhat.com/broker/rest/domains/foobarz")));
IDomain domain = user.getDefaultDomain();
// operation