@Test
  public void executeQueryLoadSubIdsAndOrgsForMyBrokerCustomers() throws Exception {
    // given
    customerOrg = createCustomer();
    currentUser = createSupplier(customerOrg);
    // when
    List<Subscription> list =
        subscriptionServiceBean.executeQueryLoadSubIdsAndOrgsForMyBrokerCustomers();

    // then
    verify(subscriptionDao, times(1))
        .getSubscriptionsForMyBrokerCustomers(eq(currentUser.getOrganization()));
    assertNotNull(list);
  }
  @Test
  public void getSubcsriptionsForManagers() throws Exception {
    // given
    Set<SubscriptionStatus> states =
        EnumSet.of(
            SubscriptionStatus.ACTIVE,
            SubscriptionStatus.PENDING,
            SubscriptionStatus.EXPIRED,
            SubscriptionStatus.PENDING_UPD,
            SubscriptionStatus.SUSPENDED,
            SubscriptionStatus.SUSPENDED_UPD);
    customerOrg = createCustomer();
    currentUser = createSupplier(customerOrg);
    // when
    List<Subscription> list = subscriptionServiceBean.getSubscriptionsForManagers();

    // then
    verify(subscriptionDao, times(1))
        .getSubscriptionsForMyBrokerCustomers(eq(currentUser.getOrganization()));
    verify(subscriptionDao, times(1))
        .getSubscriptionsForMyCustomers(eq(currentUser.getOrganization()), eq(states));
    assertNotNull(list);
  }