@Test
public void should_get_maven_id() throws Exception {

    Resource resource = new Resource();
    resource.setKey("artifactId");
    when(sonarClient.findResource(anyString())).thenReturn(resource);
    SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
    String mavenId = sonar.getMavenId(softwareProjectId);
    assertEquals("artifactId", mavenId);
}