@Override
  public void start() {
    languages.putAll(languagesLoader.load());
  }
@Test
  public void should_log_if_language_has_no_suffixes_or_patterns() {
    WsTestUtil.mockReader(wsClient, "/api/languages/list",
      new InputStreamReader(getClass().getResourceAsStream("DefaultLanguageRepositoryTest/languages-ws.json")));

    when(properties.getStringArray("sonar.java.file.suffixes")).thenReturn(JAVA_SUFFIXES);
    when(properties.getStringArray("sonar.xoo.file.patterns")).thenReturn(XOO_PATTERNS);

    underTest.start();

    assertThat(logTester.logs(Level.DEBUG)).contains("Language 'Python' cannot be detected as it has neither suffixes nor patterns.");
  }