@Test
public void testEmptyTransactionSubmitSucceeds() throws ExecutionException, InterruptedException {

    DOMStore domStore = mock(DOMStore.class);
    try (ConcurrentDOMDataBroker dataBroker = new ConcurrentDOMDataBroker(ImmutableMap.of(
            LogicalDatastoreType.OPERATIONAL, domStore, LogicalDatastoreType.CONFIGURATION, domStore),
            futureExecutor)) {
        FluentFuture<? extends CommitInfo> submit1 = dataBroker.newWriteOnlyTransaction().commit();
        assertNotNull(submit1);
        submit1.get();
        FluentFuture<? extends CommitInfo> submit2 = dataBroker.newReadWriteTransaction().commit();
        assertNotNull(submit2);
        submit2.get();
    }
}