DefaultWorldpayAdditionalInfoFacade implements WorldpayAdditionalInfoFacade { @Override public WorldpayAdditionalInfoData createWorldpayAdditionalInfoData(final HttpServletRequest request) { return worldpayAdditionalInfoService.createWorldpayAdditionalInfoData(request); } DefaultWorldpayAdditionalInfoFacade(final WorldpayAdditionalInfoService worldpayAdditionalInfoService); @Override WorldpayAdditionalInfoData createWorldpayAdditionalInfoData(final HttpServletRequest request);  }
@Test public void shouldCreateWorldpayAdditionalInfoDataFromRequest() { when(worldpayAdditionalDataService.createWorldpayAdditionalInfoData(httpServletRequestMock)).thenReturn(worldpayAdditionalInfoDataMock); final WorldpayAdditionalInfoData result = testObj.createWorldpayAdditionalInfoData(httpServletRequestMock); assertEquals(result, worldpayAdditionalInfoDataMock); }