@Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);

    when(workspace.getRepository()).thenReturn(repository);
    when(workspace.getRoot()).thenReturn(root);
    when(workspace.getLocation()).thenReturn(location);

    when(repository.getCollection(anyString())).thenReturn(expectedEntity);
    when(root.getLocation()).thenReturn(path);
    when(root.toString()).thenReturn("");

    when(path.append(any(IPath.class))).thenReturn(path);
    when(path.append(anyString())).thenReturn(path);

    when(location.append(any(IPath.class))).thenReturn(location);
    when(location.append(anyString())).thenReturn(location);

    container = new Container(path, workspace);
  }