The following error occur when i send email in junit. I also include the xml confuguration here. Hope you all help. Did i forget to configure something?

org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp
javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp
at javax.mail.Session.getProvider(Session.java:225)
at javax.mail.Session.getTransport(Session.java:331)
at org.springframework.mail.javamail.JavaMailSenderIm pl.getTransport(JavaMailSenderImpl.java:412)
at org.springframework.mail.javamail.JavaMailSenderIm pl.doSend(JavaMailSenderImpl.java:372)
at org.springframework.mail.javamail.JavaMailSenderIm pl.send............


<bean id="mailSenderInfo" class="org.springframework.mail.javamail.JavaMailS enderImpl" >

<property name="host">
<value>21.2.13.1</value>
</property>

<property name="username">
<value>user</value>
</property>
<property name="password">
<value>pass</value>
</property>

<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">true</prop>
</props>
</property>
</bean>

<bean id="SimpleMailMessage" >

<property name="from">
<value>a11111@yahoo.com</value>
</property>
<property name="subject">
<value>email</value>
</property>

<property name="text">
<value>contain</value>
</property>
</bean>

<bean id="emailManager" class="EmailManagerImpl" singleton="false">
<property name="simpleMailMessage" ref="sMMessage"/>

<property name="mailSender" ref="mailSenderInfo"/>

</bean>