*/
@Test
public void shouldHaveUrlInEmbeddedMySQL() throws OpenShiftException, URISyntaxException, FileNotFoundException,
IOException {
// pre-conditions
IApplication application = ApplicationTestUtils.ensureHasExactly1Application(domain);
EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application);
// verify using user instance that's not the one used to create
IUser user2 = new TestConnectionBuilder().defaultCredentials().disableSSLCertificateChecks().create().getUser();
IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName());
assertThat(new ApplicationAssert(user2Application))
.hasEmbeddedCartridge(LatestVersionOf.mySQL());
// operation
// verification
IEmbeddableCartridge mysql =
LatestVersionOf.mySQL().get(user2);
assertThat(mysql).isNotNull();
new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(mysql))
.hasUrlProperty();
}