public void existingFileIsCancelledIfNotWritableAndNoNewFileSelected() throws IOException {
setFileWritePermission(SAMPLE_PROJECT_ABSOLUTE_PATH, false);
Project project = new WsdlProject(SAMPLE_PROJECT_ABSOLUTE_PATH, (WorkspaceImpl) null);
answerYesWhenTheDoYouWantToWriteToNewFileDialogIsShown();
cancelWhenTheSaveAsFileDialogIsShown();
SaveStatus status = project.save();
assertThat(status, is(SaveStatus.CANCELLED));
}