@Test(expected = UnsupportedOperationException.class)
public void testGetReadOnlyFixture() throws Exception {

    final File seedDir = new File(testBaseDir, "testGetReadOnlyFixture/seedRepo/segmentstore");
    TestUtil.prepareRepo(seedDir, session -> {
        session.getRootNode().addNode("foo", "nt:unstructured");
        session.save();
    });
    final File globalDir = new File(testBaseDir, "testGetReadOnlyFixture/globalRepo/segmentstore");
    TestUtil.prepareRepo(globalDir, session -> {
    });
    try (NodeStoreFixture fixture = JcrFactory.getReadOnlyFixture(seedDir);
         NodeStoreFixture globalFixture = JcrFactory.getReadOnlyFixture(globalDir)) {
        TestUtil.compositeWithFixtures(fixture, globalFixture, session -> {
            session.getWorkspace().getNamespaceRegistry()
                    .registerNamespace("foo", "http://foo.com");
        });
    }
}