Source:
<code>public static void assertPoolsAreEqual(Pool pool1, Pool pool2) { assertEquals(pool1.getAccountNumber(), pool2.getAccountNumber()); assertEquals(pool1.getContractNumber(), pool2.getContractNumber()); assertEquals(pool1.getOrderNumber(), pool2.getOrderNumber()); assertEquals(pool1.getType(), pool2.getType()); assertEquals(pool1.getOwner(), pool2.getOwner()); assertEquals(pool1.getQuantity(), pool2.getQuantity()); assertEquals(pool1.getActiveSubscription(), pool2.getActiveSubscription()); assertEquals(pool1.getSourceEntitlement(), pool2.getSourceEntitlement()); assertEquals(pool1.getSourceStack(), pool2.getSourceStack()); assertEquals(pool1.getSubscriptionId(), pool2.getSubscriptionId()); assertEquals(pool1.getSubscriptionSubKey(), pool2.getSubscriptionSubKey()); assertEquals(pool1.getStartDate(), pool2.getStartDate()); assertEquals(pool1.getEndDate(), pool2.getEndDate()); assertEquals(pool1.getProduct(), pool2.getProduct()); assertEquals(pool1.getProvidedProducts(), pool2.getProvidedProducts()); assertEquals(pool1.getDerivedProvidedProducts(), pool2.getDerivedProvidedProducts()); assertEquals(pool1.getProvidedProductDtos(), pool2.getProvidedProductDtos()); assertEquals(pool1.getDerivedProvidedProductDtos(), pool2.getDerivedProvidedProductDtos()); assertEquals(pool1.getAttributes(), pool2.getAttributes()); assertEquals(pool1.getEntitlements(), pool2.getEntitlements()); assertEquals(pool1.getConsumed(), pool2.getConsumed()); assertEquals(pool1.getExported(), pool2.getExported()); <START> assertEquals(pool1.getProduct().getBranding(), pool2.getProduct().getBranding()); <END> assertEquals(pool1.getCalculatedAttributes(), pool2.getCalculatedAttributes()); assertEquals(pool1.isMarkedForDelete(), pool2.isMarkedForDelete()); assertEquals(pool1.getUpstreamConsumerId(), pool2.getUpstreamConsumerId()); assertEquals(pool1.getUpstreamEntitlementId(), pool2.getUpstreamEntitlementId()); assertEquals(pool1.getUpstreamPoolId(), pool2.getUpstreamPoolId()); assertEquals(pool1.getCertificate(), pool2.getCertificate()); assertEquals(pool1.getCdn(), pool2.getCdn()); }</code><technical_language>need for this more. product is compared above, enough</technical_language>

Target:
public static void assertPoolsAreEqual(Pool pool1, Pool pool2) { assertEquals(pool1.getAccountNumber(), pool2.getAccountNumber()); assertEquals(pool1.getContractNumber(), pool2.getContractNumber()); assertEquals(pool1.getOrderNumber(), pool2.getOrderNumber()); assertEquals(pool1.getType(), pool2.getType()); assertEquals(pool1.getOwner(), pool2.getOwner()); assertEquals(pool1.getQuantity(), pool2.getQuantity()); assertEquals(pool1.getActiveSubscription(), pool2.getActiveSubscription()); assertEquals(pool1.getSourceEntitlement(), pool2.getSourceEntitlement()); assertEquals(pool1.getSourceStack(), pool2.getSourceStack()); assertEquals(pool1.getSubscriptionId(), pool2.getSubscriptionId()); assertEquals(pool1.getSubscriptionSubKey(), pool2.getSubscriptionSubKey()); assertEquals(pool1.getStartDate(), pool2.getStartDate()); assertEquals(pool1.getEndDate(), pool2.getEndDate()); assertEquals(pool1.getProduct(), pool2.getProduct()); assertEquals(pool1.getProvidedProducts(), pool2.getProvidedProducts()); assertEquals(pool1.getDerivedProvidedProducts(), pool2.getDerivedProvidedProducts()); assertEquals(pool1.getProvidedProductDtos(), pool2.getProvidedProductDtos()); assertEquals(pool1.getDerivedProvidedProductDtos(), pool2.getDerivedProvidedProductDtos()); assertEquals(pool1.getAttributes(), pool2.getAttributes()); assertEquals(pool1.getEntitlements(), pool2.getEntitlements()); assertEquals(pool1.getConsumed(), pool2.getConsumed()); assertEquals(pool1.getExported(), pool2.getExported()); assertEquals(pool1.getCalculatedAttributes(), pool2.getCalculatedAttributes()); assertEquals(pool1.isMarkedForDelete(), pool2.isMarkedForDelete()); assertEquals(pool1.getUpstreamConsumerId(), pool2.getUpstreamConsumerId()); assertEquals(pool1.getUpstreamEntitlementId(), pool2.getUpstreamEntitlementId()); assertEquals(pool1.getUpstreamPoolId(), pool2.getUpstreamPoolId()); assertEquals(pool1.getCertificate(), pool2.getCertificate()); assertEquals(pool1.getCdn(), pool2.getCdn()); }