public void testFileInto() {
boolean isTestPassed = false;
String script = "fileinto \"INBOX.test1\"; fileinto \"INBOX.test2\";";
try {
MailAdapter mail = JUnitUtils.createMail();
JUnitUtils.interpret(mail, script);
assertTrue(mail.getActions().size() == 2);
assertTrue(mail.getActions().get(0) instanceof ActionFileInto);
assertTrue(((ActionFileInto) mail.getActions().get(0))
.getDestination().equals("INBOX.test1"));
assertTrue(mail.getActions().get(1) instanceof ActionFileInto);
assertTrue(((ActionFileInto) mail.getActions().get(1))
.getDestination().equals("INBOX.test2"));
isTestPassed = true;
} catch (ParseException e) {
} catch (SieveException e) {
}