@Test
public void isIntentFromPermissionNannyShouldReturnTrueWhenIntentIsValid() throws Exception {

    intent.putExtra(Nanny.ENTITY_BODY, entity);
    entity.putParcelable(Nanny.SENDER_IDENTITY, sender);
    mockPendingIntent(sender, Nanny.SERVER_APP_ID);
    boolean ans = Nanny.isIntentFromPermissionNanny(intent);
    assertThat(ans, is(true));
}