AndroidCustomField extends VCardProperty { public static AndroidCustomField dir(String type, String... values) { AndroidCustomField property = new AndroidCustomField(); property.dir = true; property.type = type; Collections.addAll(property.values, values); return property; }  static AndroidCustomField item(String type, String value); static AndroidCustomField dir(String type, String... values); String getType(); void setType(String type); List<String> getValues(); boolean isDir(); void setDir(boolean dir); boolean isItem(); void setItem(boolean item); boolean isNickname(); boolean isContactEvent(); boolean isRelation();  }
@Test public void dir() { AndroidCustomField property = AndroidCustomField.dir("type", "value1", "value2"); assertFalse(property.isItem()); assertTrue(property.isDir()); assertEquals("type", property.getType()); assertEquals(Arrays.asList("value1", "value2"), property.getValues()); }