### Question:
MdsalUtilsAsync { public <D extends DataObject> FluentFuture<? extends CommitInfo> delete( final LogicalDatastoreType store, final InstanceIdentifier<D> path) { final WriteTransaction transaction = databroker.newWriteOnlyTransaction(); transaction.delete(store, path); return transaction.commit(); } MdsalUtilsAsync(final DataBroker dataBroker); FluentFuture<? extends CommitInfo> delete(
                                    final LogicalDatastoreType store,
                                    final InstanceIdentifier<D> path); void delete(
                                    final LogicalDatastoreType store,
                                    final InstanceIdentifier<D> path,
                                    final String operationDesc); FluentFuture<? extends CommitInfo> put(
                                        final LogicalDatastoreType logicalDatastoreType,
                                        final InstanceIdentifier<D> path,
                                        final D data); void put(
                                        final LogicalDatastoreType logicalDatastoreType,
                                        final InstanceIdentifier<D> path,
                                        final D data,
                                        final String operationDesc); FluentFuture<? extends CommitInfo> merge(
                                        final LogicalDatastoreType logicalDatastoreType,
                                        final InstanceIdentifier<D> path,
                                        final D data,
                                        final boolean withParent); void merge(
                                        final LogicalDatastoreType logicalDatastoreType,
                                        final InstanceIdentifier<D> path,
                                        final D data,
                                        final String operationDesc,
                                        final boolean withParent); FluentFuture<Optional<D>> read(
                                        final LogicalDatastoreType store,
                                        final InstanceIdentifier<D> path);  }### Answer:
@Test public void testDelete() { final FluentFuture<? extends CommitInfo> fut = mdsalUtilsAsync.put( LogicalDatastoreType.CONFIGURATION, TEST_IID, DATA); fut.addCallback(new FutureCallback<CommitInfo>() { @Override public void onSuccess(final CommitInfo result) { final FluentFuture<? extends CommitInfo> future = mdsalUtilsAsync.delete(LogicalDatastoreType.CONFIGURATION, TEST_IID); future.addCallback(new FutureCallback<CommitInfo>() { @Override public void onSuccess(final CommitInfo result) { assertNull(readDS()); } @Override public void onFailure(final Throwable ex) { fail(ex.getMessage()); } }, MoreExecutors.directExecutor()); } @Override public void onFailure(final Throwable ex) { fail(ex.getMessage()); } }, MoreExecutors.directExecutor()); }