ProjectProblemResolver implements ProjectProblemDialogCallback { @Override public void onOpenAsIs() { updateProjectDescriptor(null); updateProject(); } @Inject  ProjectProblemResolver(final ProjectServiceClient projectServiceClient,
                                  final EventBus eventBus,
                                  final DtoFactory dtoFactory,
                                  final NotificationManager notificationManager,
                                  final DtoUnmarshallerFactory dtoUnmarshallerFactory,
                                  final ProjectProblemDialogPresenter problemDialogPresenter); void resolve(final @NotNull ProjectDescriptor projectDescriptor); @Override void onConfigure(@Nullable SourceEstimation estimatedType); @Override void onOpenAsIs(); @Override void onOpenAs(@Nullable SourceEstimation estimatedType);  }
@Test public void testOnOpenAsIs() throws Exception { resolver.resolve(projectDescriptor); resolver.onOpenAsIs(); verify(projectDescriptor).setType(eq(Constants.BLANK_ID)); verify(projectDescriptor, never()).setAttributes(anyMap()); verify(eventBus, never()).fireEvent(Matchers.<Event<ConfigureProjectEvent>> anyObject()); verify(projectServiceClient).updateProject(anyString(), (ProjectDescriptor)anyObject(), anyObject()); }