@Test(expected = IllegalStateException.class)
public void testWritePreConditionCheck() {

    TransactionProxy transactionProxy = new TransactionProxy(mockComponentFactory, READ_ONLY);
    transactionProxy.write(TestModel.TEST_PATH, ImmutableNodes.containerNode(TestModel.TEST_QNAME));
}