### Question:
ServerInfoServiceImpl implements ServerInfoService, Diagnostic { public ServerInfo getServerInfo() { ServerInfo serverInfo = new ServerInfo(); serverInfo.setVersion(getServerVersion()); serverInfo.setBuild(getServerBuild()); serverInfo.setEdition(getServerEdition()); serverInfo.setDateFormatPattern(calendarFormatProvider.getDatePattern()); serverInfo.setDatetimeFormatPattern(calendarFormatProvider.getDatetimePattern()); return serverInfo; }  void setMessageSource(MessageSource messageSource); ServerInfo getServerInfo(); @Override Map<DiagnosticAttribute, DiagnosticCallback> getDiagnosticData();  }### Answer:
@Test public void getServerInfoTest() { serverInfoService.getServerInfo(); assertEquals(serverVersion, serverInfoService.getServerVersion()); assertEquals(BUILD_DATE_STAMP_VALUE + "_" + BUILD_TIME_STAMP_VALUE, serverInfoService.getServerBuild()); assertEquals(serverEdition, serverInfoService.getServerEdition().toString()); }