@Test
public void shouldMatchMajorVersionedCartridge() {
// pre-conditions
String cartridgeName = "vertx-2";
List<IEmbeddedCartridge> embeddedCartridges = CartridgeTestUtils.createEmbeddedCartridgeMocks(cartridgeName, "mysql");
LatestEmbeddableCartridge constraint = new LatestEmbeddableCartridge("vertx");
// operation
IEmbeddedCartridge cartridge = constraint.get(embeddedCartridges);
// verification
assertThat(cartridge).isNotNull();
assertThat(cartridge.getName()).isEqualTo(cartridgeName);
}