MraidNativeCommandHandler { boolean isSmsAvailable(Context context) { Intent smsIntent = new Intent(Intent.ACTION_VIEW); smsIntent.setData(Uri.parse("sms:")); return Intents.deviceCanHandleIntent(context, smsIntent); }  static boolean isStorePictureSupported(Context context); static final String ANDROID_CALENDAR_CONTENT_TYPE; }
@Test public void isSmsAvailable_whenCanAcceptIntent_shouldReturnTrue() throws Exception { context = createMockContextWithSpecificIntentData("sms", null, null, "android.intent.action.VIEW"); assertThat(subject.isSmsAvailable(context)).isTrue(); }
@Test public void isSmsAvailable_whenCanNotAcceptIntent_shouldReturnFalse() throws Exception { context = createMockContextWithSpecificIntentData("", null, null, "android.intent.action.VIEW"); assertThat(subject.isSmsAvailable(context)).isFalse(); }