private ResolutionType getResolutionType(IMarker marker) {
   ArtifactKey key = getArtifactKey(marker);
   if (key != null) {
     if (key.getVersion().contains(REDHAT_SUFFIX)) {
       return ResolutionType.EAP_REPO;
     } else if (key.getGroupId().startsWith(ORG_JBOSS_PREFIX)) {
       return ResolutionType.JBOSS_REPO;
     }
   }
   return ResolutionType.UNSUPPORTED;
 }
  @Test
  public void testIdentify() throws Exception {
    MavenCentralIdentifier identifier = new MavenCentralIdentifier();
    ArtifactKey key;

    key = identifier.identify(groovy_jsr223, null);
    assertNotNull("groovy-jsr223 was not identifed", key);
    assertEquals("groovy-jsr223", key.getArtifactId());
    assertEquals("org.codehaus.groovy", key.getGroupId());
    assertEquals("2.0.4", key.getVersion());
  }