assertNull(secondbundle.getSubscriptions().get(0).getEffectiveEndDate()); assertNull(secondbundle.getSubscriptions().get(0).getBillingEndDate()); assertEquals(secondbundle.getOriginalCreatedDate().compareTo(firstbundle.getCreatedDate()), 0); assertEquals(secondbundle.getSubscriptions().get(0).getEffectiveEndDate(), new LocalDate(2013, 8, 14)); assertEquals(secondbundle.getSubscriptions().get(0).getBillingEndDate(), new LocalDate(2013, 8, 14)); assertEquals(secondbundle.getOriginalCreatedDate().compareTo(firstbundle.getCreatedDate()), 0); assertNull(thirdBundle.getSubscriptions().get(0).getEffectiveEndDate()); assertNull(thirdBundle.getSubscriptions().get(0).getBillingEndDate()); assertEquals(thirdBundle.getOriginalCreatedDate().compareTo(firstbundle.getCreatedDate()), 0);