@Test
void shouldReturnIdAndDefaultNameIfNoNameIsGiven() {

    StaticAnalysisLabelProvider emptyNameLabelProvider = new StaticAnalysisLabelProvider(ID, "");
    assertThat(emptyNameLabelProvider).hasId(ID);
    assertThat(emptyNameLabelProvider).hasName(emptyNameLabelProvider.getDefaultName());
    StaticAnalysisLabelProvider nullNameLabelProvider = new StaticAnalysisLabelProvider(ID, null);
    assertThat(nullNameLabelProvider).hasId(ID);
    assertThat(nullNameLabelProvider).hasName(nullNameLabelProvider.getDefaultName());
    StaticAnalysisLabelProvider noNameLabelProvider = new StaticAnalysisLabelProvider(ID);
    assertThat(noNameLabelProvider).hasId(ID);
    assertThat(noNameLabelProvider).hasName(noNameLabelProvider.getDefaultName());
}