@Test
    public void testEmptyCommentIsProhibited() {
        ViewInteraction createMenu = onView(withId(R.id.m_apply));
        ViewInteraction comment = onView(withId(R.id.et_comment));

        createMenu.check(ViewAssertions.matches(not(isEnabled())));

        closeSoftKeyboard();
        comment.perform(ViewActions.typeText("a"));
        createMenu.check(ViewAssertions.matches(isEnabled()));
        comment.perform(ViewActions.replaceText(""));

        createMenu.check(ViewAssertions.matches(not(isEnabled())));
    }
Verify empty comment can't be created

@throws Throwable
app/src/androidTest/java/com/github/pockethub/android/tests/gist/CreateCommentActivityTest.java