NotEmpty implements Validation { @Override public boolean isValid(final String text) { return !TextUtils.isEmpty(text); } private  NotEmpty(); static Validation build(); @Override String getErrorMessage(final Context context); @Override boolean isValid(final String text);  }
@Test public void testAnyTextIsValid() throws Exception { assertTrue(mNotEmpty.isValid("anytext")); }
@Test public void testNoTextIsNotValid() throws Exception { assertFalse(mNotEmpty.isValid("")); }