@Test(expected = IllegalStateException.class)
public void testBuilder_perform_withGlobalMemory_throws() throws Exception {

    WebsterPlan.Builder builder = new WebsterPlan.Builder();
    builder.withGlobalMemoryStore();
    final JcrNs fooNs = JcrNs.create("foo", "http://foo.com");
    final List<JcrNs> jcrNs = Collections.singletonList(fooNs);
    builder.withFixtureProvider(() -> {
        final NodeStoreFixture fixture = mock(NodeStoreFixture.class);
        doThrow(IllegalStateException.class).when(fixture).getStore();
        return fixture;
    });
    final File targetFile = new File(testOutDir, "testBuilder_perform_withGlobalMemory_throws.json");
    if (targetFile.exists()) {
        targetFile.delete();
    }
    builder.withTarget(JsonTargetFactory.CHECKLIST.createTarget(targetFile,
            obj().key("selectPaths", arr().val("/foo")).get()));
    builder.build().perform();
}