assertEquals(field, Person.Field.fromUrlString(field.toString()));
}
@Test
public void testGetProfileUrl() throws Exception {
Person person = new PersonImpl();
assertNull(person.getProfileUrl());
String address = "hi";
person.setProfileUrl(address);
assertEquals(address, person.getProfileUrl());
assertEquals(address, person.getUrls().get(0).getValue());
assertEquals(Person.PROFILE_URL_TYPE, person.getUrls().get(0).getType());
assertNull(person.getUrls().get(0).getLinkText());
address = "something new";
person.setProfileUrl(address);
assertEquals(address, person.getProfileUrl());
assertEquals(1, person.getUrls().size());
assertEquals(address, person.getUrls().get(0).getValue());
}