assertThat(p.getDrinker(), is(nullValue()));
}
@Test
public void getEmails_set() {
Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.EMAILS));
assertThat(p.getEmails().size(), is(equalTo(3)));
int primaryCount = 0;
for(ListField field : p.getEmails()) {
assertThat(isValidEmailField(field), is(true));
primaryCount += field.getPrimary() != null && field.getPrimary() ? 1 : 0;
}
assertThat(primaryCount, is(equalTo(1)));
}