@Test
public void doCheckCanSyncWithFailedSdkSync() throws IOException {

  //noinspection ThrowableInstanceNeverThrown
  IOException error = new IOException();
  doThrow(error).when(mySdkSync).syncIdeAndProjectAndroidSdks(myProject);
  PreSyncCheckResult result = myCondition.doCheckCanSyncAndTryToFix(myProject);
  assertFalse(result.isSuccess());
  verify(mySdkSync).syncIdeAndProjectAndroidSdks(myProject);
}