@Test
  public void shouldStartHardwareTriggerServiceOnBootWhenHomeReady() {
    bootReceiver.onReceive(Robolectric.application, bootIntent);

    Intent startedIntent = Robolectric.getShadowApplication().getNextStartedService();
    ShadowIntent shadowIntent = shadowOf(startedIntent);
    assertNotNull(startedIntent);
    assertEquals(HardwareTriggerService.class, shadowIntent.getIntentClass());
  }
 @Test
 public void shouldNotProcessOtherIntents() {
   bootReceiver.onReceive(Robolectric.application, new Intent(Intent.ACTION_SCREEN_ON));
   assertNull(Robolectric.getShadowApplication().getNextStartedService());
 }