@Test
public void should_identify_project_with_maven_id() throws Exception {

    ProjectKey projectKey = new ProjectKey();
    projectKey.setMavenId("groupId:artifactId");
    Resource resource = new Resource();
    resource.setKey("groupId:artifactId");
    when(sonarClient.findResource("groupId:artifactId")).thenReturn(resource);
    SoftwareProjectId softwareProjectId = sonar.identify(projectKey);
    assertEquals("groupId:artifactId", softwareProjectId.getProjectId());
}