### Question:
ConfigValidationException extends RuntimeException { public static ConfigValidationException createDuplicateEntityIdException(String entityId) { return new ConfigValidationException(format("Duplicate entity id found: {0}", entityId)); } private  ConfigValidationException(String message); static ConfigValidationException createFileReadError(String filePath); static ConfigValidationException createDuplicateEntityIdException(String entityId); static ConfigValidationException createMissingMatchingEntityIdException(String transactionEntityId); static ConfigValidationException createAbsentMatchingServiceConfigException(String matchingServiceEntityId, String transactionEntityId); static ConfigValidationException createAbsentOnboardingTransactionConfigException(String transactionEntityId, String idpEntityId); static ConfigValidationException createInvalidCertificatesException(List<InvalidCertificateDto> invalidCertificates); static ConfigValidationException createIDPLevelsOfAssuranceUnsupportedException(Collection<IdentityProviderConfig> badIDPConfigs); static ConfigValidationException createTransactionsRequireUnsupportedLevelOfAssurance(Collection<TransactionConfig> badTransactionConfigs); static ConfigValidationException createIncompatiblePairsOfTransactionsAndIDPs(Map<TransactionConfig, List<IdentityProviderConfig>> incompatibleIdps);  }### Answer:
@Test public void createDuplicateEntityIdException() throws Exception { ConfigValidationException exception = ConfigValidationException.createDuplicateEntityIdException("entity-id"); assertThat(exception.getMessage()).isEqualTo("Duplicate entity id found: entity-id"); }