tempDir.deleteOnExit();
DirectoryResource currentResource = resourceFactory.create(DirectoryResource.class, tempDir);
Shell shell = test.getShell();
shell.setCurrentResource(currentResource);
DirectoryResource child = currentResource.getChildDirectory("Forge 2 Escape");
child.mkdir();
child.deleteOnExit();
Result result = test.execute("cd Forge\\ 2\\ Escape", 10, TimeUnit.SECONDS);
Assert.assertThat(result.getMessage(), CoreMatchers.nullValue());
Assert.assertEquals(shell.getCurrentResource(), child);
currentResource.delete(true);