private List<String> visitedPaths = new LinkedList<String>();
@Test
public void testMkdDirWithUnauthorizedSession() throws Exception {
Session session = mock(Session.class);
when(session.nodeExists(anyString())).thenReturn(false);
when(session.getWorkspace()).thenReturn(admin.getWorkspace());
JcrPackageManagerImpl jcrPackageManager = new JcrPackageManagerImpl(session);
String path = "/etc/packages";
try {
jcrPackageManager.mkdir(path, true);