@Test(expected = IllegalArgumentException.class)
public void testSignup_Throws_Exception_Given_Valid_Link_Url_And_Given_No_Email_Address()
		throws MessagingException, UsernameNotExistException,
		EmailAddressNotExistException, Hl7v3TransformerException {

	// Arrange
	final String linkUrl = "linkUrl";
	SignupDto signupDto = mock(SignupDto.class);
	when(signupDto.getUsername()).thenReturn("username");
	when(signupDto.getBirthDate()).thenReturn(new Date());
	PixManagerBean pixManagerBeanMock = mock(PixManagerBean.class);
	when(pixService.addPatient(any(PixPatientDto.class))).thenReturn(
			pixManagerBeanMock);
	when(passwordEncoder.encode(any(CharSequence.class))).thenReturn(
			"encodedPassword");
	// Act
	sut.signup(signupDto, linkUrl);
}