private DateTime createSubscriptionCreationEvent(final Plan nextPlan, final PlanPhase nextPhase) throws CatalogApiException { final DateTime now = clock.getUTCNow(); final DateTime then = now.minusDays(1); final PriceList nextPriceList = catalog.findPriceList(PriceListSet.DEFAULT_PRICELIST_NAME, now); final EffectiveSubscriptionInternalEvent t = new MockEffectiveSubscriptionEvent( eventId, subId, bunId, then, now, null, null, null, null, EntitlementState.ACTIVE, nextPlan.getName(), nextPhase.getName(), nextPriceList.getName(), 1L, SubscriptionBaseTransitionType.CREATE, 1, null, 1L, 2L, null); effectiveSubscriptionTransitions.add(t); return now; } }