@Test
public void shouldMatchEmbeddableCartridge() {
// pre-conditions
LatestVersionQuery redhatSelector = new LatestVersionQuery("redhat");
LatestVersionQuery jbossSelector = new LatestVersionQuery("jboss");
IEmbeddableCartridge redhat10 = new EmbeddableCartridge("redhat-1.0");
IEmbeddableCartridge redhat30 = new EmbeddableCartridge("redhat-3.0");
IEmbeddableCartridge jboss10 = new EmbeddableCartridge("jboss-1.0");
LatestVersionQuery closedSourceSelector = new LatestVersionQuery("closedsource");
// operation
// verification
assertTrue(redhatSelector.matches(redhat10));
assertTrue(redhatSelector.matches(redhat30));