private Workspace mockWorkspace(final String[] workspaceFiles) throws IOException, InterruptedException {
Workspace workspace = mock(Workspace.class);
when(workspace.child(anyString())).thenReturn(workspace);
when(workspace.getPath()).thenReturn(WORSPACE_ROOT);
when(workspace.findFiles(anyString())).thenReturn(workspaceFiles);
return workspace;
}
}