title: What's the way to get Intent information with unit test from class method?
body: <p>I just started to write Unit tests for Android code and got stuck.</p>
  
  <p>Writing test for this peace of code:</p>
  
  <pre><code>Intent intent = new Intent(context, Some.class);
  intent.setAction(Some.SYNC_SERVICE_ACTION_SYNC);
  context.startService(intent);
  </code></pre>
  
  <p>And I would like to know how using mockito I can get intent action to test class for comparison if there was called the same intent?</p>
  
  <p>In the test I'm trying to do something like this:</p>
  
  <pre><code>String action = "SyncService.SYNC_SERVICE_ACTION_SYNC";
  when(context.startService(any())).thenReturn(Intent);
  assertEquals("Do not match", action, Intent.getAction());
  </code></pre>
  
  <p>Maybe someone can help? </p>