public void testIsEmptyDirectFields() {
    final ContactsSource source = getSource();
    final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE);
    final EditType typeHome = EntityModifier.getType(kindPhone, Phone.TYPE_HOME);

    // Test row that has type values, but core fields are empty
    final EntityDelta state = getEntity(TEST_ID);
    final ValuesDelta values = EntityModifier.insertChild(state, kindPhone, typeHome);

    assertTrue("Expected empty", EntityModifier.isEmpty(values, kindPhone));

    // Insert some data to trigger non-empty state
    values.put(Phone.NUMBER, TEST_PHONE);

    assertFalse("Expected non-empty", EntityModifier.isEmpty(values, kindPhone));
  }
  public void testIsEmptyEmpty() {
    final ContactsSource source = getSource();
    final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE);

    // Test entirely empty row
    final ContentValues after = new ContentValues();
    final ValuesDelta values = ValuesDelta.fromAfter(after);

    assertTrue("Expected empty", EntityModifier.isEmpty(values, kindPhone));
  }