@Test
public void analyzeFromString01() throws Exception {

  final JavaAnalyzer analyzer = getAnalyzer();
  final String cp = getClasspath();
  final String tmp = System.getProperty("java.io.tmpdir");
  String path = project.getProjectRootPath() + "./src/test/java/meghanada/Hello.java";
  String code = "class Hello {}";
  CompileResult result = analyzer.runAnalyzeAndCompile(cp, tmp, path, code, false, true);
  String summary = result.getDiagnosticsSummary();
  assertEquals(true, result.isSuccess());
}