@Test
public void testCreateProjectWithProjectPresent() {

    final String projectName = "projectName";
    final String projectVersion = "projectVersion";
    final String projectId = "12345";
    SW360Project project = new SW360Project();
    project.getLinks().setSelf(new Self("https://sw360.org/projects/" + projectId));
    when(projectClientAdapter.getProjectByNameAndVersion(projectName, projectVersion))
            .thenReturn(Optional.of(project));

    metaDataUpdater.createProject(projectName, projectVersion, Collections.emptySet());

    verify(projectClientAdapter, never()).createProject(any());
    verify(projectClientAdapter, times(1)).addSW360ReleasesToSW360Project(projectId, Collections.emptySet());
}