### Question:
CheckmarxConfig extends AbstractCodeScanAdapterConfig implements CheckmarxAdapterConfig { @Override public String getClientSecret() { return clientSecret; } private  CheckmarxConfig(); @Override String getTeamIdForNewProjects(); @Override String getClientSecret(); Long getPresetIdForNewProjectsOrNull(); @Override InputStream getSourceCodeZipFileInputStream(); @Override String getEngineConfigurationName(); static CheckmarxConfigBuilder builder(); static final String DEFAULT_CLIENT_SECRET; public Long presetIdForNewProjects; }### Answer:
@Test public void builder_creates_config_with_default_client_secret_when_not_set() { CheckmarxConfigBuilder builder = createBuilderWithMandatoryParamatersSet(); CheckmarxConfig config = builder.build(); assertEquals(CheckmarxConfig.DEFAULT_CLIENT_SECRET, config.getClientSecret()); }
@Test public void builder_creates_config_with_given_client_secret_when_set() { String newSecret = "test-secret"; CheckmarxConfigBuilder builder = createBuilderWithMandatoryParamatersSet(); builder.setClientSecret(newSecret); CheckmarxConfig config = builder.build(); assertEquals(newSecret, config.getClientSecret()); }