@Test
public void testCompare() throws ParseException {
//GIVEN
Expectations expectations = new Expectations();
PackageEntry firstEntry = context.mock(PackageEntry.class, "firstEntry");
expectations.atLeast(0).of(firstEntry).getUpdated();
expectations.will(returnValue(createDate("2012.04.27 15:30:00")));
PackageEntry secondEntry = context.mock(PackageEntry.class, "secondEntry");
expectations.atLeast(0).of(secondEntry).getUpdated();
expectations.will(returnValue(createDate("2012.04.27 15:40:00")));
context.checking(expectations);