ScriptAction r = p.call();
assertTrue("slept correctly", r instanceof Sleep);
Sleep s = (Sleep)r;
Calendar target = Calendar.getInstance();
target.add(Calendar.YEAR, 1);
target.add(Calendar.MONTH, 2);
target.add(Calendar.DATE, 3);
target.add(Calendar.HOUR, 4);
Calendar c = s.getUntil();
assertEquals("good year", target.get(Calendar.YEAR), c.get(Calendar.YEAR));
assertEquals("good month", target.get(Calendar.MONTH), c.get(Calendar.MONTH));
assertEquals("good day", target.get(Calendar.DATE), c.get(Calendar.DATE));
assertEquals("good hour", target.get(Calendar.HOUR), c.get(Calendar.HOUR));