@Test
public void testSave() {

    final ObservablePath path = mock(ObservablePath.class);
    doReturn(path).when(versionRecordManager).getCurrentPath();
    presenter.onStartup(XLSPath,
                        mock(PlaceRequest.class));
    doReturn(Optional.of(mock(WorkspaceProject.class))).when(workbenchContext).getActiveWorkspaceProject();
    doReturn(promises.resolve(false)).when(projectController).canUpdateProject(any());
    presenter.save("saving");
    verify(metadataService).saveMetadata(eq(path),
                                         eq(metadata),
                                         eq("saving"));
}