@Test
public void testGetAccessibleWorkspaceNames() throws Exception {

    final Workspace workspace = mock(Workspace.class);
    final String[] names = new String[]{"workspace1", "workspace2"};
    when(workspace.getAccessibleWorkspaceNames()).thenReturn(names);
    final WorkspaceFacade<Workspace, Session> facade = getFacade(workspace);
    assertSame("should be same", names, facade.getAccessibleWorkspaceNames());
}