DefaultWorldpayOrderInfoStrategy implements WorldpayOrderInfoStrategy { @Override public AdditionalAuthInfo getAdditionalAuthInfo(final WorldpayMerchantConfigData worldpayMerchantConfigData) { final AdditionalAuthInfo additionalAuthInfo = new AdditionalAuthInfo(); populateAdditionalAuthInfo(additionalAuthInfo, worldpayMerchantConfigData); return additionalAuthInfo; }  @Override AdditionalAuthInfo getAdditionalAuthInfo(final WorldpayMerchantConfigData worldpayMerchantConfigData); @Override void populateAdditionalAuthInfo(final AdditionalAuthInfo additionalAuthInfo, final WorldpayMerchantConfigData worldpayMerchantConfigData);  }
@Test public void shouldGetAdditionalAuthInfo() { when(worldpayMerchantConfigDataMock.getOrderContent()).thenReturn(ORDER_CONTENT); when(worldpayMerchantConfigDataMock.getInstallationId()).thenReturn(INSTALLATION_ID); when(worldpayMerchantConfigDataMock.getStatementNarrative()).thenReturn(STATEMENT_NARRATIVE_TEXT); final AdditionalAuthInfo result = testObj.getAdditionalAuthInfo(worldpayMerchantConfigDataMock); assertEquals(ORDER_CONTENT, result.getOrderContent()); assertEquals(INSTALLATION_ID, result.getInstallationId()); assertEquals(STATEMENT_NARRATIVE_TEXT, result.getStatementNarrative()); }