@Test
@SuppressWarnings("unchecked")
public void sendNoAttachment() {
String email = "svarut.to@hudson.iktfou.no";
String replyTo = "svarut.from@hudson.iktfou.no";
Forsendelse forsendelse = ForsendelsesArkivTest.createForsendelse( 1 );
forsendelse.setId( "sendNoAttachment" );
forsendelse.setEmail( email );
forsendelse.setShipmentPolicy( ShipmentPolicy.KUN_EMAIL.value() );
forsendelse.setReplyTo( replyTo );
expect( templateEngineMock.merge( isA( Map.class ), same( SubjectTemplate ) ) ).andReturn( SubjectTemplate );
expect( templateEngineMock.merge( isA( Map.class ), same( BodyTemplateNoAttachment ) ) ).andReturn( BodyTemplateNoAttachment );
mailSenderMock.sendEmail( same( email ), same( replyTo ), same( SubjectTemplate ), same( BodyTemplateNoAttachment ), (File[])EasyMock.isNull() );
expectLastCall();
replay( templateEngineMock );