*/
public class UserContactDtoTest {
@Test
public void testCreateFromUserContact() {
UserContact userContact = prepareUserContact();
//create
UserContactDto contactDto = new UserContactDto(userContact);
//check content
assertEquals(contactDto.getValue(), userContact.getValue(),
"The problem of copying data. Value - value.");
assertEquals(contactDto.getId(), Long.valueOf(userContact.getId()),
"The problem of copying data. Value - Id.");
assertEquals(contactDto.getType().getId(), userContact.getType().getId(),
"The problem of copying data. Value - type.");
}