DefaultWorldpayRiskDataService implements WorldpayRiskDataService { @Override public RiskData createRiskData(final CartModel cartModel, final WorldpayAdditionalInfoData worldpayAdditionalInfoData) { RiskData riskData = new RiskData(); riskData.setAuthenticationRiskData(createAuthenticationRiskData(cartModel, worldpayAdditionalInfoData)); riskData.setShopperAccountRiskData(createShopperAccountRiskData(cartModel, worldpayAdditionalInfoData)); riskData.setTransactionRiskData(createTransactionRiskData(cartModel, worldpayAdditionalInfoData)); return riskData; }  @Override RiskData createRiskData(final CartModel cartModel, final WorldpayAdditionalInfoData worldpayAdditionalInfoData);  }
@Test public void testCreateRiskData() { final RiskData result = testObj.createRiskData(cartModelMock, worldpayAdditionalInfoDataMock); assertNotNull(result); assertNotNull(result.getAuthenticationRiskData()); assertNotNull(result.getShopperAccountRiskData()); assertNotNull(result.getTransactionRiskData()); }