mockDirector
.mockGetApplications("foobarz",
Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP_SCALABLE_DOWNLOADABLECART);
IDomain domain = mockDirector.getDomain("foobarz");
IApplication application = domain.getApplicationByName("downloadablecart");
assertThat(application).isNotNull();
IEmbeddableCartridge foreman = new EmbeddableCartridge(null, new URL(FOREMAN_URL));
new CartridgeAssert<IEmbeddableCartridge>(foreman)
.hasUrl(CartridgeTestUtils.FOREMAN_URL)
.hasName(null)
.hasDescription(null)
.hasDisplayName(null);
// operation
IEmbeddedCartridge embeddedForeman = application.getEmbeddedCartridge(foreman);
// verifications
// embedded cartridge should get updated with name, description and
// display name
new EmbeddedCartridgeAssert(embeddedForeman)
.hasUrl(CartridgeTestUtils.FOREMAN_URL);