int getMinimumTokens(String languageKey) {
    return settings.getInt("sonar.cpd." + languageKey + ".minimumTokens").orElse(100);
  }
@Test
  public void defaultMinimumTokens() {
    when(configuration.getInt(anyString())).thenReturn(Optional.empty());
    assertThat(cpdSettings.getMinimumTokens("java")).isEqualTo(100);
  }