}
@BeforeMethod
public void setUp() throws NotFoundException {
initMocks(this);
validator = new ValidUserContactValidator();
UserContactType validContactType = new UserContactType();
validContactType.setId(TYPE_ID_VALID);
validContactType.setValidationPattern(VALID_PATTERN);
UserContactType nullPatternContactType = new UserContactType();
nullPatternContactType.setId(TYPE_ID_NULL_PATTERN);
nullPatternContactType.setValidationPattern(null);
when(contactsService.get(TYPE_ID_VALID)).thenReturn(validContactType);
when(contactsService.get(TYPE_ID_NULL_PATTERN)).thenReturn(nullPatternContactType);
when(contactsService.get(TYPE_ID_NON_EXISTENT)).thenThrow(new NotFoundException());
validator = new ValidUserContactValidator();
validator.setContactsService(contactsService);
}