@Override
    public MySqlConnectorEmbeddedDebeziumConfiguration getConfiguration() {
        return configuration;
    }
@Test
    void testIfMySqlEndpointCreatedWithConfig() throws Exception {
        final Map<String, Object> params = new HashMap<>();
        params.put("offsetStorageFileName", "/offset_test_file");
        params.put("databaseHostname", "localhost");
        params.put("databaseUser", "dbz");
        params.put("databasePassword", "pwd");
        params.put("topicPrefix", "test");
        params.put("databaseServerId", "1234");
        params.put("schemaHistoryInternalFileFilename", "/db_history_file_test");
        params.put("additionalProperties.database.connectionTimeZone", "CET");

        final String remaining = "test_name";
        final String uri = "debezium:mysql?name=test_name&offsetStorageFileName=/test&"
                           + "topicPrefix=localhost&databaseServerId=1234&databaseUser=dbz&databasePassword=pwd&"
                           + "databaseServerName=test&schemaHistoryInternalFileFilename=/test";

        try (final DebeziumComponent debeziumComponent = new DebeziumMySqlComponent(new DefaultCamelContext())) {
            debeziumComponent.start();
            final DebeziumEndpoint debeziumEndpoint = debeziumComponent.createEndpoint(uri, remaining, params);

            assertNotNull(debeziumEndpoint);

            // test for config
            final MySqlConnectorEmbeddedDebeziumConfiguration configuration
                    = (MySqlConnectorEmbeddedDebeziumConfiguration) debeziumEndpoint.getConfiguration();
            assertEquals("test_name", configuration.getName());
            assertEquals("/offset_test_file", configuration.getOffsetStorageFileName());
            assertEquals("localhost", configuration.getDatabaseHostname());
            assertEquals("dbz", configuration.getDatabaseUser());
            assertEquals("pwd", configuration.getDatabasePassword());
            assertEquals("test", configuration.getTopicPrefix());
            assertEquals(1234L, configuration.getDatabaseServerId());
            assertEquals("/db_history_file_test", configuration.getSchemaHistoryInternalFileFilename());
            assertEquals("CET", configuration.getAdditionalProperties().get("database.connectionTimeZone"));
        }
    }