WorldpayHybrisVersionAppender implements WorldpaySupportEmailAppender { @Override public String appendContent() { final String hybrisVersion = configurationService.getConfiguration().getString(HYBRIS_BUILD_VERSION_KEY); return "Hybris version: " + hybrisVersion + System.lineSeparator(); }  @Override String appendContent(); @Required void setConfigurationService(ConfigurationService configurationService);  }
@Test public void testAppendContent() throws Exception { when(configurationServiceMock.getConfiguration()).thenReturn(configurationMock); when(configurationMock.getString(HYBRIS_BUILD_VERSION_KEY)).thenReturn(HYBRIS_VERSION_INFO); final String result = testObj.appendContent(); assertTrue(result.contains("Hybris version: " + HYBRIS_VERSION_INFO)); }