### Question:
ServerCommunications implements Communications { @Override public void notifyThatDocumentAnalysed(String uri) { runAsync( () -> logMessage( Info, "No syntax errors detected in " + retrieveFileName(files.decodeURI(uri)))); } @Inject  ServerCommunications(Provider<LanguageClient> provider, FileSystemService files); @Override void notifyThatEngineNotFound(String languageType); @Override void notifyThatLoadingInProgress(String uri); @Override void notifyThatDocumentAnalysed(String uri); @Override void notifyThatExtensionIsUnsupported(String extension); void publishDiagnostics(Map<String, List<Diagnostic>> diagnostics); @Override void cancelProgressNotification(String uri);  }### Answer:
@Test void testNotifyThatDocumentAnalysed() { assertDocumentAnalysedNotification(DOCUMENT_URI, "document.cbl"); assertDocumentAnalysedNotification("document.cbl", "document.cbl"); assertDocumentAnalysedNotification("", ""); }