@Override
    public void executeUpdate(final ImportMetaDataStatement sqlStatement, final ContextManager contextManager) throws SQLException {
        String jsonMetaDataConfig;
        if (sqlStatement.getFilePath().isPresent()) {
            File file = new File(sqlStatement.getFilePath().get());
            try {
                jsonMetaDataConfig = FileUtils.readFileToString(file, Charset.defaultCharset());
            } catch (final IOException ignore) {
                throw new FileIOException(file);
            }
        } else {
            jsonMetaDataConfig = new String(Base64.decodeBase64(sqlStatement.getMetaDataValue()));
        }
        ExportedClusterInfo exportedClusterInfo = JsonUtils.fromJsonString(jsonMetaDataConfig, ExportedClusterInfo.class);
        ExportedMetaData exportedMetaData = exportedClusterInfo.getMetaData();
        importServerConfiguration(contextManager, exportedMetaData);
        importDatabase(exportedMetaData);
    }
@Test
    void assertImportMetaDataFromJsonValue() throws SQLException {
        init(EMPTY);
        ContextManager contextManager = mock(ContextManager.class, RETURNS_DEEP_STUBS);
        executor.executeUpdate(new ImportMetaDataStatement(METADATA_VALUE, null), contextManager);
        assertNotNull(contextManager.getDatabase("sharding_db"));
    }