@Test
public void should_get_project_name() throws Exception {

    Resource resource = new Resource();
    resource.setName("name");
    when(sonarClient.findResource(anyString())).thenReturn(resource);
    SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
    String name = sonar.getName(softwareProjectId);
    assertEquals("name", name);
}