title: Forcing a background application to terminate in iOS simulator
body: <p>In iOS 4 applications go to the background instead of terminating. For this reason I have to register for:</p>
  
  <pre><code>[[NSNotificationCenter defaultCenter] addObserver:self
                                        selector:@selector(appWillTerminate:)
                                        name:UIApplicationWillResignActiveNotification
                                        object:[UIApplication sharedApplication]];
  </code></pre>
  
  <p>Instead of UIApplicationWillTerminateNotification.</p>
  
  <p>But what happens if I want to test my UIApplicationWillTerminateNotification. How can I test it in the simulator?</p>