@Test
public void testApply() throws Exception {

    MutableCompositeModification compositeModification = new MutableCompositeModification();
    compositeModification.addModification(new WriteModification(TestModel.TEST_PATH,
        ImmutableNodes.containerNode(TestModel.TEST_QNAME)));
    DOMStoreReadWriteTransaction transaction = store.newReadWriteTransaction();
    compositeModification.apply(transaction);
    commitTransaction(transaction);
    Optional<NormalizedNode<?, ?>> data = readData(TestModel.TEST_PATH);
    assertNotNull(data.get());
    assertEquals(TestModel.TEST_QNAME, data.get().getNodeType());
}