.endTime(endTime)
.resource(SubscriptionResource.VLAN)
.discountAmount(10.5d)
.build()
);
SubscriptionCalculator subscriptionCalculator = api.calculateSubscriptions(subscriptionsToCalculate);
List<CalcSubscription> calculatedSubscriptions = subscriptionCalculator.getSubscriptions();
assertEquals(calculatedSubscriptions.size(), subscriptionsToCalculate.size());
for (int i = 0; i < calculatedSubscriptions.size(); i++) {
assertEquals(calculatedSubscriptions.get(i).getResource(), subscriptionsToCalculate.get(i).getResource());
}
}