@Override
    public Optional<DispatchEvent> build(final DataChangedEvent event) {
        if (Strings.isNullOrEmpty(event.getValue())) {
            return Optional.empty();
        }
        Optional<QualifiedDataSource> qualifiedDataSource = QualifiedDataSourceNode.extractQualifiedDataSource(event.getKey());
        if (qualifiedDataSource.isPresent()) {
            QualifiedDataSourceState state = new YamlQualifiedDataSourceStateSwapper().swapToObject(YamlEngine.unmarshal(event.getValue(), YamlQualifiedDataSourceState.class));
            return Optional.of(new QualifiedDataSourceStateEvent(qualifiedDataSource.get(), state));
        }
        return Optional.empty();
    }
@Test
    void assertCreateEmptyEvent() {
        Optional<DispatchEvent> actual = new QualifiedDataSourceDispatchEventBuilder().build(
                new DataChangedEvent("/nodes/qualified_data_sources/replica_query_db.readwrite_ds.replica_ds_0", "", Type.ADDED));
        assertFalse(actual.isPresent());
    }