IEmbeddedCartridge embeddedCartridgeMock = createEmbeddedCartridgeFake("redhat");
HashSet<IEmbeddedCartridge> cartridges = new HashSet<IEmbeddedCartridge>();
cartridges.add(embeddedCartridgeMock);
assertEquals(cartridges.size(), 1);
// operation
boolean removed = cartridges.remove(new EmbeddableCartridge("redhat"));
// verification
assertTrue(removed);
assertEquals(0, cartridges.size());
}