CreateSavingsAccountController { public void getProductOfferings(CreateSavingsAccountFormBean formBean) { List<PrdOfferingDto> savingsProducts = savingsServiceFacade.retrieveApplicableSavingsProductsForCustomer(formBean.getCustomer().getCustomerId()); Map<String, String> offerings = new HashMap<String, String>(savingsProducts.size()); for (PrdOfferingDto offering : savingsProducts) { offerings.put(offering.getPrdOfferingId().toString(), offering.getPrdOfferingName()); } formBean.setProductOfferings(savingsProducts); formBean.setProductOfferingOptions(offerings); } protected  CreateSavingsAccountController(); SavingsAccountDetailDto createAccountInActiveState(
            CreateSavingsAccountFormBean formBean); SavingsAccountDetailDto createAccountInPartialApplicationState(
            CreateSavingsAccountFormBean formBean); SavingsAccountDetailDto createAccountInPendingApprovalState(
            CreateSavingsAccountFormBean formBean); void customerSelected(Integer customerId, CreateSavingsAccountFormBean formBean); void loadQuestionGroups(CreateSavingsAccountFormBean formBean); void loadProduct(Integer productId,
            CreateSavingsAccountFormBean formBean); void getProductOfferings(CreateSavingsAccountFormBean formBean); CustomerSearchResultsDto searchCustomers(
            CreateSavingsAccountFormBean formBean);  }
@SuppressWarnings("unchecked") @Test public void testGetProductOfferings() { when(savingsServiceFacade.retrieveApplicableSavingsProductsForCustomer(any(Integer.class))).thenReturn(offerings); controller.getProductOfferings(formBean); verify(formBean).setProductOfferings(offerings); Map<String, String> expectedOptions = new HashMap<String, String>(); expectedOptions.put(offering.getPrdOfferingId().toString(), offering.getPrdOfferingName()); verify(formBean).setProductOfferingOptions(any(Map.class)); }