@Test
public void sendApost() {
final int variant = 2;
final String printId = "printId";
Forsendelse forsendelse = ForsendelsesArkivTest.createForsendelse( variant );
forsendelse.setId( "" + variant );
forsendelse.setFile( new File( "src/test/resources/test.pdf" ) );
forsendelse.setFnr( "" );
forsendelse.setShipmentPolicy(ShipmentPolicy.KUN_APOST.value());
PrintReceipt printReceipt = newPrintReceipt( printId );
expect( printFacade.print( eq( forsendelse ) ) ).andReturn( printReceipt );
forsendelsesArkiv.setPrinted( eq( forsendelse.getId() ), eq( printReceipt ) );
replay( printFacade );
replay( forsendelsesArkiv );
dispatcher.send( forsendelse );
verify( printFacade );
verify( forsendelsesArkiv );