@Test
public void testUnneccesaryRemoveArtifact() {

    List<ArtifactSelector> list = new ArrayList<>();
    list.add(selector);
    config.setRemoveArtifact(list);
    ConfigurationChecker checker = new ConfigurationChecker(reporter, config);
    checker.process(artifacts);
    List<ProcessingMessage> messageList = reporter.getProcessingReport().getMessageList();
    assertThat(messageList).isNotEmpty();
    assertThat(messageList.get(0).getMessageType()).isEqualTo(MessageType.UNNECESSARY_CONFIG);
}