assertNotNull("Fabric8 DTO is null!", fabric8);
VersionDTO version = fabric8.getDefaultVersion();
assertNotNull("Default version is null", version);
ProfileDTO profile = fabric8.createProfile(version.getId(), "unitTestProfileIDE");
assertNotNull("createProfile returns null when created profile", profile);
ProfileDTO profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
assertNotNull("getProfile returns null for created profile", profile2);
fabric8.deleteProfile(version.getId(), profile2.getId());
profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
assertNull("The profile hasn't been deleted from backstore", profile2);
} catch (IOException ex) {
fail(ex.getMessage());